Microsoft DiskPart version 10.0.19041.1
Copyright (C) Microsoft Corporation.
On the computer: NEW-NAME
DISKPART> list disk
Disk ### Status Size Free Dyn GPT
--------------- ------------- ------- ------- --- ---
Disk 0 Online 62 GB 1024 KB
Disk 1 online 256 GB 158 GB
Disk 2 Online 128 GB 1024 KB
DISKPART> select disk 1
Disk 1 is now the selected disk.
DISKPART> list partition
Partition ### type size offset
------------- ---------------- ------- -------
Partition 1 primary 39 GB 1024 KB
Partition 2 primary 19 GB 39 GB
Partition 3 primary 39 GB 78 GB
DISKPART> select partition 3
Partition 3 is now the selected partition.
DISKPART> delete partition override
The selected partition has been deleted successfully.
DISKPART>
2.) What should I watch out for when formatting using cmd.exe and the Diskpart command?
In general, you can use the Diskpart.exe service to delete all known data partitions. Who does not want to use the disk management to delete. However, if you try to delete hidden partitions or system protected partitions like the recovery partition using the "Delete Partition" command in DiskPart, you might get the error message!
3.) More information about partitioning and formatting under Windows!
The range of commands and the possibilities are the main difference between PowerShell and the command prompt on Windows 11, 10, and MS Server OS Contents: