The macOS operating system includes a disk utility command called diskutil
. Also included is a Disk Utility application which can preform a subset of the functions offered by the diskutil
command. (These functions are technically referred to as verbs.) The Disk Utility application also does not necessarily display all the partitions that actually exist on a drive. Often, posting just what is viewed from the Disk Utility application is not sufficient to diagnose and repair a problem with a drive.
In your case, you can not delete the BOOTCAMP partition because the partition is preceded by a partition that can not be resized. Well, you have not identified, in your question, which partition this is. In fact, the Disk Utility application may not even be displaying this partition.
To delete the BOOTCAMP partition using the Disk Utility application, you will need to first remove or HFS format the preceding partition. This is usually the partition immediately preceding, but not always.
The basic steps given below.
Use either the Disk Utility application or diskutil
command to identify the preceding partition that needs to be HFS formatted or removed. The diskutil
command format is given below.
diskutil list
Use either the Disk Utility application or diskutil
command to remove or HFS format the preceding partition.
Use the Disk Utility application to remove the BOOTCAMP partition.
diskutil list
. Post the output to your question. This command will not change your computer.