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