When formating SD or microSD cards for linux OS’s like for raspberry or esxi or even for windows with multiple partitions I found that the easiest way to erase all partitions and format it from the beginning is to use Rufus.

Download Rufus from its official site

Run it, select your drive and then choose FreeDOS from the Boot Selection dropdown menu and finally press START


Your disk is now initialized from partitions and can be easily reformated at your filesystem that you want