Windows clean up multiple partitions via CLI

|

I had to install a new copy of windows, sadly the USB drive at hand had about 11 small partitions on it due to some earlier work. When I tried formatting it, it formatted only one part of it and was annoying in general… when I checked disk management, I was only able to delete a few of the small partitions. Heres how I did it via CLI / cmd line.

DISKPART
LIST DISK

see which one is your disk, such as mine was the last on the list since I had just plugged it in, make sure to match up the size etc also i.e. this will erase your disk so be very very careful. then run the following command substituting 10 for whatever your disk # is:

select disk 10
clean

then exit and exit again. voilà.

Similar Posts

Leave a Reply

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