Trashed files are stored in the FreeDesktop standard location: ~/.local/share/Trash/files. How do I restore or permanently delete files in that folder using dired?

  • I use the following two settings to control placing deleted files in a specific location: (setq delete-by-moving-to-trash t) (setq trash-directory "~/.Trash") To my knowledge, Emacs doesn't keep track of files that are trashed for purposes of restoration. OSX has built-in support to restore from Finder.app. The following link is to a library that deals with OSX related trash: github.com/lunaryorn/osx-trash.el – lawlist Aug 22 '16 at 14:43
  • Is it possible to read system files (app datas like pcmanfm) for the tracking information? – godblessfq Aug 24 '16 at 1:38
  • 1
    This might answer to your request ;-) github.com/shingo256/trashed – Shingo Tanaka Nov 8 '19 at 13:15
  • I've also found your trashed a few days ago on melpa. That's exactly what I am looling for. Thank you! – godblessfq Nov 18 '19 at 13:14
  • @ShingoTanaka Can you make this an answer? – feklee Dec 23 '19 at 8:49

You can use Trashed in MELPA. This package provides you a simple but convenient user interface to manage trashed files. It supports both MS Windows Recycle Bin and freedesktop.org Trash Can. See https://github.com/shingo256/trashed

  • This is essentially a link-only answer, so it risks being deleted. Please add at least a summary of the info to be found at that link. Thx. – Drew May 7 '20 at 20:50
  • Thx for the heads up. Done. – Shingo Tanaka May 8 '20 at 23:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.