Originally published:
Technical review: 22 October 2026
DiskPart manages Windows disks, partitions and volumes. Formatting can destroy data on the selected volume. Create a restorable backup and verify the target through capacity, labels and existing contents.
In an administrator terminal, diskpart, then list disk and list volume show inventory. After selecting a target, use detail disk or detail volume to check it again. Never copy a disk number from another machine. See the Microsoft DiskPart documentation.
Only with the correct, backed-up volume selected and its data loss accepted should you choose a suitable filesystem. For example, format fs=ntfs quick quick-formats the selected volume; it is neither recovery nor secure erasure. Do not apply it indiscriminately to system, boot, recovery or shared storage. Review format options beforehand.
clean and volume formatting are different operations. Removing partition information is not a routine prerequisite.
On a cloud server or dedicated server, check application, database and backup dependencies and agree recovery and maintenance plans.