Forum Discussion
How to delete all partitions in windows 11?
diskpart is a command-line disk partitioning utility included in Windows operating systems, including Windows 11. It allows users to manage disks, partitions, and volumes with more control than the graphical Disk Management tool.
To delete all partitions in Windows 11 using the diskpart command, follow these steps carefully.
⚠️ This will erase all data on the selected disk, so make sure you've backed up any important files before proceeding.
1. Press Windows + S, type cmd.
2. Right-click Command Prompt > select Run as administrator.
3. Start diskpart utility and list all disks in Windows 11.
diskpart
list diskIdentify the disk number you want to wipe (e.g., Disk 1, Disk 2).
4. Select the disk by replacing X with the correct disk number. Example:
select disk 15. Delete all partitions:
cleanThis command removes all partitions and data on the selected disk.
Notes: The clean command performs a quick wipe as it deletes partition info but not the data blocks themselves. If you want to securely delete all partitions in windows 11, use 'clean all' command instead, which writes zeroes to every sector (this takes longer):