diskpart

Windows disk management, at times is quite simple- it won’t allow advanced management features- where you know what you are doing. This was with formatting a SD card with Fedora for Raspberry Pi3. I needed to redo the os image and just couldn’t get back all the space there was on SD Card.

following command will cause loss of data- try at your own risk

There is an alternative, is to use diskpart. This utility will not nag you to confirm changes.

To start diskpart & list out the disk enter:

diskpart
list disk


In my case here the SD Card was listed as disk 1

select disk 1
clean


This will erase all the partitions on the selected disk and will create 1 full sized partition.

exit

MS Reference