Windows operating system - delete the hard disk partition.
Step 1: Search for “Command Prompt Characters” on the Windows system to right click and execute as a system administrator.
Step 2: After entering the window, type “diskpart” and press Enter to enter the disk utility.
Step 3: Enter “listdisk” and press Enter to view all hard drive information and find the hard drive where you want to delete the partition.
Step 4: After finding the target, enter “select disk” (please enter the disk number for the disk code), select the hard disk you want to delete the partition and press Enter to confirm the disk selection (please choose carefully, due to incorrect selection) The hard drive will cause the wrong hard drive to be erased and cannot be restored).
Step 5: Enter the “clean” command and press Enter to delete all the partitions and data on the selected hard disk, and then delete the partition.
Linux operating system - delete the hard disk partition.
Step 1: Enter “fdisk -l” in the Console to display the partition configuration status of all hard disks and find the hard drive where you want to delete the partition.
Step 2: Enter “fdisk -l /dev/disk code” to display the partition configuration status of the specified hard disk, and confirm that the hard disk information is the hard disk of the partition to be cleared.
Step 3: Enter “fdisk /dev/disk code” to execute the hard disk partitioning program.
Step 4: After executing the fdisk hard disk partitioning program, enter “d” to delete the partition (this step may be repeated if there are multiple partitions).
Step 5: After executing the delete partition command, you need to enter “w” to save and write to the partition configuration (all modified partition configurations will not take effect until this command is executed).
Step 6: Finally, enter “q” to exit the fdisk hard disk partitioning program, which completes the operation of deleting the partition.