[Tutorial]: Diskpart Delete Partition on Windows 11, 10, 8, and 7
How to use Diskpart to delete partitions on Windows 11/10/8/7? You can refer to this post to get the full guide. Besides, a powerful third-party tool will be introduced to help you get it done with much more ease.
Need to delete partitions in Windows
Not all partitions can be involved in your daily needs, sometimes, you may need to delete some partitions for:
● Free up disk space: A partition can take up redundant data and occupy large storage space. For example, some PCs have a recovery partition, and lots of people will copy recovery partition to another drive or USB as a portable recovery drive and delete the recovery partition later to have some free space.
● Better manage storage space: It can be harder for disk management when there are too many partitions on the hard disk. So, many people delete unnecessary partitions. Before deleting a partition, you can move apps from your current partition to another partition to avoid data loss.
● Resizing partitions: Deleting partitions may be part of the process of resizing partitions. Users may need to delete a partition to create unallocated space, which can then be reallocated to another partition to increase its size.
But how to delete partitions? It's not hard once you find the proper solutions. Here, in the following contents, the top 4 practical ways will be introduced to help.
How do I delete a partition in Windows 11, 10, 8, 7?
▶ Method 1: Using the Diskpart to delete partition
Diskpart is a snap-in for disk management on Windows. Different from Disk Management, all the operations are based on command lines. Using Diskpart to delete partitions is very common nowadays.
1. In the search box at the bottom left of the interface, type “cmd” and hit “ENTER” to launch Command Prompt.
2. Type “diskpart” and hit “ENTER” to run Diskpart. Type the following commands one after the other and hit enter.
● list disk
● select disk 1 (1 is the sequence number of the disk where the partition you want to delete is)
● list partition
● select partition 1(1 is the sequence number of the partition you want to delete)
● delete partition (delete partition override)
- delete partition: This command is used to delete normal partitions like data drive, or the partition where there is no OS-related files on.
- delete partition override: This functions to use diskpart commands delete partition force. To force delete the partition that is protected by Windows like OEM recovery partition, you can use this command .
3. Type "exit" to back to the desktop.
★ If you are using a dynamic disk, delete the partition can delete all dynamic volumes on the disk. To delete a dynamic partition, you can use the “delete volume” command instead.
★ If you want to delete all partitions on time, please type "clean disk" after "list disk".
▶ Method 2: Using the Disk Management to delete partition
Disk Management is also Windows built-in tool. You can open it by right-clicking This PC, then go to Storage-> Disk Management. Then, right-click the partition you want to delete, click Delete Volume.
★ The to-be-deleted partition shouldn’t be the boot drive, otherwise, you will fail to delete the partition.
★ You can’t remove the OS while it’s still running.
★ You have to delete all logical partitions first before deleting an extended partition.
★ You can’t delete partitions on a removable device like a USB on some old versions of Windows.
▶ Method 3: Using powerful third-party freeware to delete partitions
As mentioned above, you could run into much trouble if you use Diskpart or Disk Management to delete partitions. Fortunately, by applying AOMEI Partition Assistant Standard, you can manage your hard disks and their partitions easily by performing different operations including partition creations, partition formatting, and of course, partition deletion. So, if you’re unwilling to delete partition with Diskpart, you might as well turn to this very powerful software.
- ★Notes:
- This tool supports creating a bootable Win PE media that helps you delete system partition if Windows does not allow you to delete a partition that is related to the OS.
- This tool can delete a single partition or delete all partitions on your disk at one time. This can be finished only in three clicks.
Step 1. Launch the program. You can see the basic environment of your hard drives with a concise interface.
Step 2. In the main tab. Right-click the partition you need to delete. Then click the “Delete Partition” button.
Step 3. After clicking Delete Partition, it will popup a window to choose the way to delete the selected partition and they're “Delete Partition Quickly” or “Delete Partition and wipe data on it”. Here we highly recommend you choose the former one. The latter will take more time and the data will be erased permanently. Click OK.
Step 4. Click Apply at the tool bar to launch the progress.
Now, you can go to Disk Management and check whether the partition has been deleted successfully.
▶ Method 4: Diskpart alternative partassist.exe of AOMEI Partition Assistant
To overcome the limits of Diskpart, you can use some third-party software to delete the partition. AOMEI Partition Assistant is a great powerful partition management tool and it provides command lines to manage disks after upgrading it to the professional edition. Here, you can use it to delete partitions as follows.
1. Launch Command Prompt in the same way as in Method 1.
Then, type: cd C:\Program Files (x86)\AOMEI Partition Assistant (The path is your AOMEI Partition Assistant installation directory), and press Enter.
2. Type: partassist.exe /list:0
Then it will list all the partitions on your disk.
3. Type:/partassist.exe /del:G and press ENTER. The progress will be executed. You can refer to the screenshot below:
Or you can use other commands like “Partassist.exe /del:n” to delete a specified partition. If you want to delete all the partitions on a disk, you can type “Partassist.exe /hd:0 /del:all” at the prompt.
Note:
> "/hd" followed by disk number, which starts with 0.
> "/del:0" and "/del:G" mean deleting the specified partition.
> "/del:all" means delete all the partitions on the disk.
Conclusion
In this post, you’ve learnt to use Diskpart to delete partitions as long as another 2 alternatives – Disk Management and AOMEI Partition Assistant Standard. By comparison, the AOMEI product is the best among them as it’s much more easy-to-use and has fewer limits if you want to delete any partitions. If you want to use this software on Servers, you can try the Server edition.
FAQs about Diskpart delete partition
1. Can I recover data from a deleted partition using Diskpart?
No, Diskpart's "delete partition" command permanently removes the partition and its data from the disk. Once a partition is deleted, any data stored on it is unrecoverable using Diskpart alone. It's essential to back up any important data before deleting partitions to prevent data loss.
2. What precautions should I take before using Diskpart to delete partitions?
Before using Diskpart to delete partitions, it's crucial to back up any important data stored on the partitions you intend to delete. Additionally, double-check your commands to ensure you're selecting the correct disk and partition to delete, as Diskpart operations are irreversible and can result in data loss if performed incorrectly.
3. How to delete a partition in fdisk command line?
Open a terminal or command prompt on your system. Run the fdisk command with administrative privileges. For example, on Linux-based systems, you might use the following command: sudo fdisk /dev/sdX.
Replace "/dev/sdX" with the appropriate disk identifier for the disk containing the partition you want to delete (e.g., /dev/sda, /dev/nvme0n1).
Once in the fdisk utility, type "p" and press Enter to print the partition table, allowing you to identify the partition you want to delete. Note the number of the partition you wish to delete. Type "d" and press Enter to initiate the delete partition command.
When prompted, enter the number of the partition you want to delete and press Enter. Repeat the process if you need to delete multiple partitions. Once you have deleted all desired partitions, type "w" to write the changes to the disk and exit fdisk.
Finally, reboot your system to apply the changes.