Clearing contextual recents dock menu?

For some apps in the dock there is a contextual menu of recent items. How does one clear that list? I have one app that has a list of fairly old documents that I'd like to clear out. I've tried deleting the app and any prefs/library items associated with it, rebooting (even safe boot), and reinstalling the app and the list from previous uses is still there. The app itself has its own recents list, which of course came up empty when I reinstalled it, and which has an option for clearing it (that doesn't affect the list in the dock.) If it's relevant, the app in question is LibreOffice.

MacBook Pro (Retina, 13-inch, Late 2012), macOS High Sierra (10.13.3), NeoOffice

Posted on Feb 20, 2018 6:55 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 8, 2018 7:26 PM

OK. I found part of the answer. The list of recent documents is contained in ~Library/ Application Support/ com.apple.sharedfilelist/ com.apple.LSSharedFileList.ApplicationRecentDocuments/ org.libreoffice.script.sfl2 ("org.libreoffice.script" is the bundle identifier for the app; for other apps use their bundle identifier.) Deleting that file will clear the list of recents, but you have to log out of your account for it to take effect -- presumably Dock info is cached in some account-local data that isn't erased with a reboot, safe or normal. What is interesting is that the Dock's recent-file-list uses some kind of universal file I.d. -- if you change the name of the file, the Dock's list will still find the file -- but the recents list in the app won't. Note that deleting the file will clear the recents list in the Dock, but not the one in the app. At least that's the case for LibreOffice.


4 replies
Question marked as Top-ranking reply

Mar 8, 2018 7:26 PM in response to Theodore Lee

OK. I found part of the answer. The list of recent documents is contained in ~Library/ Application Support/ com.apple.sharedfilelist/ com.apple.LSSharedFileList.ApplicationRecentDocuments/ org.libreoffice.script.sfl2 ("org.libreoffice.script" is the bundle identifier for the app; for other apps use their bundle identifier.) Deleting that file will clear the list of recents, but you have to log out of your account for it to take effect -- presumably Dock info is cached in some account-local data that isn't erased with a reboot, safe or normal. What is interesting is that the Dock's recent-file-list uses some kind of universal file I.d. -- if you change the name of the file, the Dock's list will still find the file -- but the recents list in the app won't. Note that deleting the file will clear the recents list in the Dock, but not the one in the app. At least that's the case for LibreOffice.


Mar 8, 2018 12:22 PM in response to Thomas Gray

Nope, LibreOffice doesn't have that option in the contextual menu. I did find a file under com.apple.LSSharedFileList.ApplicationRecentDocuments, which is apparently where the recents list is kept, for LibreOffice and deleted it, killed and restarted the Dock, and it didn't make any difference. The app itself, since I just reinstalled it, has no recents list of its own -- but there still is a complete (10 items) one in the dock contextual menu. I've even done a safe boot in case this stuff is buried in a cache somewhere, but that didn't help either. There must be a hidden database somewhere, but I haven't been able to find any mention of it! I don't know if this is an OS bug or an app bug, but it sure is annoying, in a petty sort of way.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Clearing contextual recents dock menu?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.