Today we are going to tell you how to clean a little the system of a utility that sometimes makes us work faster but that in others can generate a compromised situation in case that you have opened an inappropriate file on a Mac that is not your own.
It may also be the case that you want to preserve the anonymity of what is open or not in a certain application. That is why we are going to teach you to manage and clean macOS Dock icons from their corresponding recent files.
When we open files in macOS, the system itself saves us a list of the last files opened. That list of files can be modified by going into System Preferences> General, being able to select the maximum number of recent files to display if requested.
However, those recent files that would be shown in the applications in their own menus do not go hand in hand with the recent files that are shown in the system when we right click on the application icon of the el Dock. For example, in the case of going to recent files in Word and deleting certain recent files from the list, if then we go to the Word icon in the macOS Dock and do the said, this is right-click, we will see that it continues to show us the recent files that we have deleted.
So that the Dock does not show us these recent files we have to restart the macOS Dock for which we will simply have to execute the command in the Terminal: