How to remove BOOTCAMP partition? I'm using a 2015 MacBook Pro (15-inch Retina). I've recently installed Windows using Boot Camp Assistant and now I want to remove it.

To remove the BOOTCAMP partition I have tried the following:


Going to Boot Camp Assistant > Continue > Restore
Result it was stuck half way.
Going to Disk Utility > click BOOTCAMP partition > Erase > Mac OS
Extended (Journaled)
Result Unmounting disk. Couldn’t open disk. Operation failed…


Can someone help me with this?
When you say "going to bootcamp assistant -> continue" do you mean you did something similar to the steps in this Apple support answer? Note that there are different steps depending on if you have a single or multiple internal drives.

If you are using the Disk Repair Utility, have you tried booting into the Disk Utility (hold down command+r when you boot the computer or restart)?

Especially if you have a single internal drive you may also want to create a bootable USB drive, and then boot to it to use Disk Utility to alter the boot drive partitioning (so the drive is not reading and writing to the same physical media). Holding down option when you start allows you to select the startup drive.