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.
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 content, the top 4 practical ways will be introduced to help. For beginners and users who haven't used the command line interface before, it is highly recommended that you go directly to a third-party tool - AOMEI Partition Assistant Standard. As a reliable disk partitioning software, it can be a perfect alternative to Diskpart and save your time and effort.
For other users who want to continue to delete partition using Diskpart, keep reading.
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: type “cmd” and hit “ENTER” in the search box.
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.
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)
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".
To overcome the limits of Diskpart, you can use some third-party software to delete the partition.
However, you could run into much trouble if you use Diskpart 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.
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.
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.
To break through these limitations, you can opt for AOMEI Partition Assistant, a tool that supports all Windows versions and can automate advanced functions to successfully delete partitions.
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.
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.