Next: select, Previous: resize, Up: Command explanations
Removes the partition with number number. If you accidently delete a partition with this command, use mkpart (not mkpartfs) to recover it. Also, you can use the gpart program (see Related information) to recover damaged disk labels.
Note for msdos disk labels: if you delete a logical partition, all logical partitions with a larger partition number will be renumbered. For example, if you delete a logical partition with a partition number of 6, then logical partitions that were number 7, 8 and 9 would be renumbered to 6, 7 and 8 respectively. This means, for example, that you have to update /etc/fstab on GNU/Linux systems.
Example:
(parted) rm 3Remove partition 3.