execute the Windows API function DeviceIoControl with the control code IOCTL_DISK_DELETE_DRIVE_LAYOUT, the effect of which would be to remove the boot signature from the master boot record, so that the disk will be formatted from sector zero to the end of the disk.
IOCTL_DISK_DELETE_DRIVE_LAYOUT 0x7c100 Removes the boot signature from the master boot record, so that the disk will be formatted from sector zero to the end of the disk. Partition information is no longer stored in sector zero.
also references here: