The question here is, can that be done (from the command line) DURING the windows setup process? Lets assume that the partition that contains the windows install is damaged and Windows can no longer be booted to get to a command prompt.
I've run into this exact situation. I had to uase a seconds windows 7 machine to delete the partitions on the drive before I could reinstall on it. It was quite frustrating. Bu default the partitioning step during install will no longer allow you to delete a partition that once had windows 7 installed on it
There must be a single computer/no working windows install solution to this...
If so, it might make a good seperat etutuorial because this situation is pretty unique in it's resolution.