Where is "Recent Documents" list stored?

I want to be able to clear the “Recent Documents” list. Windows stores links under AppData / Application Data that I can automatically delete with a .bat file. I’d like to add the location / file for LibreOffice so I can clear it monthly. I’ve found how to remove the toolbar icon, change the number of files shown, etc. but that doesn’t delete the stored information, just hides it.

It is stored in registrymodifications.xcu, as

<item oor:path="/org.openoffice.Office.Histories/Histories/org.openoffice.Office.Histories:HistoryInfo['PickList']/ItemList">

and

<item oor:path="/org.openoffice.Office.Histories/Histories/org.openoffice.Office.Histories:HistoryInfo['PickList']/OrderList">

Just a note: you not only can hide the list, but also limit the number of items stored, including zero, using PickListSize. Setting it to zero prevents any new items to be added to the file, although you might need to manually clear already stored items.

Thanks Mike, that helped. Deleted both ‘items’ from the file and the file shrank from >1K to 331K. Took a while to find “PickListSize” though… set it to 0. I’ll keep an eye on the registrymodifications.xcu file.

@mikekaganski: I know it’s bad style to add to a closed thread. Nonetheless (mea culpa): Is there also a uno service providing access to a ‘RecentFileList’ from user code?
Might help to solve Can we have list of recent files, per app? .

Definitely there must be: I remember to see some extension that managed the recent file list; I believe it did that using UNO, not by direct manipulations with registrymodifications :slight_smile: