Skip to Content
gnux

-u, --remove

Deallocate and remove file after overwriting; -u is --remove=wipesync, and HOW may be unlink, wipe or wipesync.

An option of shredx.

Usage

shredx -u FILE...
shredx --remove[=HOW] FILE...

Details

ShortLongValueDefaultMeaning
-u--removeHOW (optional)deallocate and remove file after overwriting; -u is --remove=wipesync, and HOW may be unlink, wipe or wipesync

Examples

Overwrite a secret file and delete it, showing each pass

shredx -v -u secrets.txt
Output
shredx: secrets.txt: pass 1/3 (random)...
shredx: secrets.txt: pass 2/3 (random)...
shredx: secrets.txt: pass 3/3 (random)...
shredx: secrets.txt: removing
shredx: secrets.txt: renamed to 00000000000
...
shredx: secrets.txt: removed

Shred a read-only key file

shredx -f -u id_ed25519

Help in the terminal

gnux help shredx --remove

On this page