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