2025-03-14 21:59:59 -06:00
|
|
|
# sdelete
|
|
|
|
|
|
|
|
|
|
> Securely delete file/directory from disk, or clean the free space on a volume/physical disk.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://learn.microsoft.com/sysinternals/downloads/sdelete>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Delete files with 3 [p]asses:
|
|
|
|
|
|
|
|
|
|
`sdelete -p 3 {{path\to\file1 path\to\file2 ...}}`
|
|
|
|
|
|
|
|
|
|
- Delete folders and its [s]ubdirectories with 1 pass (default):
|
|
|
|
|
|
|
|
|
|
`sdelete -s {{path\to\directory1 path\to\directory2 ...}}`
|
|
|
|
|
|
|
|
|
|
- Clean the free space of volume D: with 3 [p]asses:
|
|
|
|
|
|
|
|
|
|
`sdelete -p 3 D:`
|
|
|
|
|
|
|
|
|
|
- Clean the free space with [z]eros of physical disk 2, which should not contain any volumes to be cleaned:
|
|
|
|
|
|
|
|
|
|
`sdelete -z 2`
|