#deleting #safe #remove #delete #directory #move #system #deleted #restore #srm

bin+lib safe-remove

Safe Remove (srm): Move files to a safe location instead of deleting them immediately

3 releases

0.1.2 Jan 21, 2025
0.1.1 Jan 19, 2025
0.1.0 Jan 19, 2025

#192 in Operating systems

Download history 9/week @ 2025-05-09 3/week @ 2025-05-16

79 downloads per month

MIT license

22KB
524 lines

SRM (Safely Remove)

[!CAUTION] I'm still working on this project, so it's not ready for use yet.

srm is a command-line program to delete files securely.

Motivation

The rm command is the most commonly used command to delete files in Unix-like operating systems. However, it's really easy to accidentally delete important files with it, and never be able to restore it.

srm is a safer alternative to rm that stores deleted files in a trash directory instead of deleting them permanently.

Roadmap

  • Basic functionality, like storing deleted files in a trash directory, restoring them, and deleting them permanently.
  • Implementing the -r option to delete directories recursively.
  • Daemon mode to monitor the trash directory and delete files permanently after a certain period of time.

Dependencies

~7–16MB
~202K SLoC