Score:0

Force refresh of file cache in start menu

cn flag

My disk was in need of a long overdue clean-up. I deleted around 70GB of files and folders from my disk using Dolphin (the file manager). When I now open the start menu, I still find a lot of cached files, that I have deleted, in the results. When I click on any of them, I will just get a message "Unable to run the command specified. The file or folder does not exist." After searching a bit more, I even found results for files that I deleted months ago. So while the search results seem to track files that get added, they do not seem to track files that get moved to recycle bin and then deleted using the file manager.

I tried using sudo updatedb -o /var/lib/mlocate/mlocate.db and a reboot, but this did not solve my problem. So the start menu does not seem to use the default locate database.

So: How can I update the start menu file results, so that the deleted files no longer show up? Is there any tool / command / etc. to achieve this?

Note that the solution should be able to update a lot of files. I don't mind if it takes hours, as long as it is an automated process. But I don't want to update every file result by hand as I would need to update hundreds of files.

System info:

  • Ubuntu 20.04.3 LTS
  • KDE Plasma 5.18.5
  • KDE Frameworks: 5.68.0
in flag
Could you [edit] your question to include which version of Ubuntu you’re using? This will make it easier for someone to offer a specific solution
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.