Basic recycle bin for Linux command line
Last updated 2 years ago by goto-bus-stop .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install soft-rm 
SYNC missed versions from official npm registry.


This is abandonware. If you would like to have the npm package name soft-rm, please open an issue on the repository and I will give it to you.

soft-rm is a small wrapper around rm that does not remove files. It's like a recycle bin for the command line.


  • soft-rm file "soft-deletes" the given file.
  • soft-rm --restore file restores the given file, if possible.
  • soft-rm --flush file actually, irreversibly, for-real deletes a previously soft-deleted file.
  • soft-rm --restore-all restores all soft-deleted files.
  • soft-rm --flush-all actually, irreversibly, for-real deletes all previously soft-deleted files.

You can also add soft-rm --flush-all to your init scripts if you like.

Limitations (for now)

  • does not work across file systems
  • "trash" directory is not configurable
  • does not support most of the rm cli arguments (including useful stuff like -r)



Current Tags

  • 0.0.3-abandoned                                ...           latest (2 years ago)

2 Versions

  • 0.0.3-abandoned                                ...           2 years ago
  • 0.0.2-alpha                                ...           6 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2016 © |