RedHat 7/8 – How to delete partitions with parted command

You can delete both MBR and GPT partitions with parted command

i) Login as root user, execute the parted command with the disk devices that you want to delete in command prompt

ii) identify the partition number that you want to delete

iii) Delete the partition by enter rm command with partition number

Take note that rm command will immediately delete the partition from the partition table.

iv) Exit parted

Leave a Reply

Your email address will not be published. Required fields are marked *