fdisk is both a dos and a linux program. Also sometimes dos cannot remove linux partitions depending on how those were made with the dos version of fdisk.