Files
cheatsheet-tldr/tldr/windows/sdelete
2024-10-08 00:16:55 +00:00

26 lines
691 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
syntax: markdown
tags: [tldr, windows]
source: https://github.com/tldr-pages/tldr.git
---
# sdelete
> Securely delete file/directory from disk, or clean the free space on a volume/physical disk.
> More information: <https://learn.microsoft.com/en-us/sysinternals/downloads/sdelete>.
- Delete files with 3 [p]asses:
`sdelete -p 3 {{path o ile1 path o ile2 ...}}`
- Delete folders and its [s]ubdirectories with 1 pass (default):
`sdelete -s {{path o\directory1 path o\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`