srm
Securely remove files or directories. tldr-pages
On several platforms
Several platforms
Securely remove files or directories. Overwrites the existing data one or multiple times. Drop in replacement for rm.
Remove a file after a single-pass overwriting with random data
srm --simple path/to/fileIdentifyRemove a file after seven passes of overwriting with random data
srm -m path/to/fileIdentifyRecursively remove a directory and its contents overwriting each file with a single-pass of random data
srm --recursive --simple path/to/directoryIdentifyPrompt before every removal
srm --interactive \*Identify