Properly Delete Extra Partitions on USB Drive using DiskPart

Windows does have a Disk Management tool for simple disk management operations. For USB drive or logical drive, if the drive already has more than one partition, Disk Management will not allow you manage extra partitions on removable storage devices, unless you deleted all of the partitions and make a new, full size partition. Disk Management will not provide delete volume option for extra partitions on USB drives if more than one partition is detected.


How to combine two partitions or more into one and restore USB drive to it's original state?

To delete partitions on USB drive, you will need to use the command-line utility: Diskpart. Diskpart enhances the Disk Management graphical user interface (GUI). Below guide is for Windows systems only. For MacOS, you can have similar solution here


When you use DiskPart to clean USB drive partition, all data on the USB will be erased.

Step 1, start a command prompt as an administrator (CMD)

  1. Click Start.
  2. In the Start Search box, type cmd, and then press CTRL+SHIFT+ENTER or right click choose "Run as administrator"
  3. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.

Step 2, run DISKPART.

At the command prompt, type:


Step 3, List all disk in DISKPART.

At the DISKPART prompt, type:

list disk

Important! Make down the disk number of the disk from which you want to delete the partition.

Step 4, select your USB disk which you want to delete the partition.

Replace the * with your disk number from step 3.

At the DISKPART prompt, type:

select disk*

Step 5, if you want to delete all partitions and create one full size partition, use the following command and go to step 10 below.

At the DISKPART prompt, type:


Step 6, list all partitions on the drive.

At the DISKPART prompt, type:

list partition

Make note of the number of the partition that you want to delete.

Step 7, select the partition you want to delete.

Replace the * with your disk partition number from step 5.

At the DISKPART prompt, type:

select partition*

Step 8, delete partition.

This command will delete the partition that you select from step 7.

At the DISKPART prompt, type:

delete partition

Step 9, repeat the step 6-8 if you need to delete other partitions.

All delete partitions will be left as unallocated space.

Diskpart Unallocated

Step 10, you can now use Disk Management to manage the drive now.

If you want to create one full partition using DISKPART, use the following command.

At the DISKPART prompt, type:

create partition primary

Step X. After all done, exit DISPART.



  1. Thanks! Your article enabled me to resurrect a damaged USB card (Was showing only half of it's real capacity). Worked like a charm!

  2. Thanks! I had tried to use the Windows 10 iOT on this drive, and when I messed up, I couldn't get the full capacity back. After doing a "clean" command and the "create partition primary" command, I formatted the drive and it was fixed. I couldn't thank you any more.

  3. ty was trying to format this 2 TB USB Key for awhile this cleared the issue it was showin as a 50 mb disk, till i did a clean command. it wiped all partitions and works flawlessly now, i has 1999gb free on the drive, replaced my WD passport.

  4. My USB got write protected. I tried these steps but I am not able to clean my USB. every time I do it says - DiskPart has encountered an error: The request could not be performed because of an I/O device error. Please help me out.

    1. You may want to check if your USB is working properly. Maybe the USB have bad sectors that cause I/O error. Try use CHKDSK command

  5. i used Ultra ISO a create empty ISO file and i wrote it into USB-Flash and the space converted from 999 MB to 1.85 GB because the boot partition is deleted and it's space and primary partition space add to one partition, Ultra ISO when write ISO to USB it is formatting before start write

  6. Had to add this after Step 10 - create partition primary
    select partition 1 and hit enter
    active and hit enter
    format fs=fat32 and hit enter
    exit and hit enter
    Safely eject your USB key, reboot and replug, see if you have a working drive.

  7. Under step 9 there's a screen capture of a window showing the drive with the "Unallocated space," I don't know how or where to get to that screen. Can anyone chime in on this? Thanks!

    1. On windows 10 and 8 just press the WIN and X keys together to bring up the menu, then click on the Disk Management shortcut.
      Older versions run command line as administrator then type diskmgmt.msc and hit enter.

  8. Thank you, great tutorial. I thought my 128gb USB was ruined. Now a day we are scared to type anything on the CMD prompt.

  9. Looks like Step 7 is incorrect. Should be

    Step 7, select the partition you want to delete.
    Replace the * with your partition number from step 6.

    and not

    Step 7, select the partition you want to delete.
    Replace the * with your disk number from step 5.

    Or you can delete all the partitions if you just skip Step 7 and don't select a specific partition.

    1. cheers for this, saved me....after following everything my drives wouldn't be recognised by my computer
      now to sort all my externals haha cheers again

  10. It does not work try as I might I have run those now several time and still the files come up in G: as write protect and F: is unrecognisable, even after reformatting the F: drive I still cannot use diskpart or anything to get rid of the partitions on this 80GB USB ๐Ÿ™

Leave a Reply

Your email address will not be published. Required fields are marked *