Skip to content

rm

Terminal window
rm [-e [opts] | -S | args...]

Safe rm wrapper routing to trash:

(no args) List current trash contents
-e/--empty Empty the trash (pass options to trash-empty)
-S/--secure Permanently delete via rm -rf + fstrim (irreversible)
-r/-R/--recursive Move to trash
<paths> Move to trash (safe delete)

Falls back to /usr/bin/rm when trash is unavailable.

Terminal window
rm file.txt # moves to trash
rm -e # empty trash
rm -S sensitive.pem # permanent delete