shred
DestructiveSecurely erase files
shred -u <file>
Overwrites before deleting to resist recovery. Less effective on SSDs and CoW filesystems — know the limits.
Examples
shred -n 3 -u secrets.txtOverwrite three times, then remove
Syntax
shred [-n N] [-u] <file>
Before you run it
Designed to be unrecoverable.
Check it once more before you run it
Some commands cannot be undone if one flag is wrong. An on-device reference works with no connection. Free to install, no ads.
Get it free on the App Store