i would suggest using the windows cd to format and reinstall windows.

as for the command cfdisk will do you if you just want to delete some partitions.

either type man cfdisk (to read the cdisk manual) or press h when in cfdisk.