I have a Windows 7 Boot Camp partition that I want to remove. It was set up in Boot Camp in earlier versions of MacOS; however, I have since updated to Mojave and it seems that Boot Camp Assistant has updated, too. Its partition removal option only mentions "Remove Windows 10 or later version", suggesting it might not support removing earlier versions. Can that option still be used to safely remove the partition or should it be avoided?

Edit: per @Jean_JD's follow-up question, the results of running the diskutil list internal command:

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         401.1 GB   disk0s2
   3:       Microsoft Basic Data BOOTCAMP                99.0 GB    disk0s3

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +401.1 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            378.3 GB   disk1s1
   2:                APFS Volume Preboot                 113.3 MB   disk1s2
   3:                APFS Volume Recovery                2.1 GB     disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4
  • It's possible suppress BootCamp partition manually. Can you give the results (text) of the terminal command diskutil list internal ?
    – user415185
    Commented Oct 23, 2021 at 15:20
  • @Jean_JD Sure - the output is too long to reply to here, so I've added it to my original question.
    – James
    Commented Oct 23, 2021 at 15:36

1 Answer 1


Ok. Execute the terminal command :

diskutil erasevolume free space disk0s3

Then, I suppose you want add the free space to your Mac os x Container. If yes, execute :

diskutil ap resizecontainer disk1 0b

Then, to suppress Windows references at boot, you mount the EFI partition :

sudo diskutil mount disk0s1

Your password will be requiered and don't show up when you type it

Then you give the results of :

ls -l /Volumes/EFI/EFI

Normaly you have a Directory WINDOWS, so you delete it :

rm -r /Volumes/EFI/EFI/WINDOWS

And it's all ;-)

  • The installation of Windows would not create the folder /Volumes/EFI/EFI/WINDOWS. If Windows was installed to UEFI boot, then you would you would want to remove the /Volumes/EFI/EFI/Boot and /Volumes/EFI/EFI/Microsoft. However, Windows 7 can only be installed to BIOS boot on Mac computers. So here would be nothing to remove from the EFI volume. Commented Oct 23, 2021 at 17:20
  • Also, I would think you would want to finish with a diskutil unmount disk0s1. Commented Oct 23, 2021 at 17:26
  • @DavidAnderson Does that mean I would only need to use the first two commands in Jean_JD's answer? Would that be sufficient to ensure the Windows partition is no available as a boot option?
    – James
    Commented Oct 23, 2021 at 20:09
  • There is no problem to try the 2 first commands and test is at boot you don't have Windows option.
    – user415185
    Commented Oct 23, 2021 at 21:05
  • @James: I would know if the first two commands would work properly only if I first saw the output from the command fdisk /dev/disk0. This command would have to be entered while booted to macOS Recovery. The command does not change your Mac. The command only shows the contents of the MBR partition table. Commented Oct 23, 2021 at 21:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .