shred
Overwrite files with random data multiple times and optionally remove them. Securely erase sensitive files beyond forensic recovery. Requires explicit confirmation.
Instructions
Overwrite file contents multiple times with random data then optionally remove. Destructive and irreversible: shredded data is unrecoverable. Requires explicit --allow_destructive confirmation. Use --dry_run to preview. Use to securely erase sensitive files beyond forensic recovery. Not for simple deletion — use 'rm' for non-sensitive files. See also 'rm'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | Files to overwrite. | |
| passes | No | Number of zero overwrite passes. | |
| remove | No | Remove files after overwriting. | |
| dry_run | No | Report operations without changing files. | |
| allow_destructive | No | Allow real destructive overwrite. |