You can delete Windows by using the "remove Windows" option in Bootcamp Assistant. This is the only safe way to remove it.
After a reboot you can then restart Bootcamp Assistant and install Windows in a new partition with a size of your choice.
Once Bootcamp has installed Windows you should not resize nor create/delete any partitions. This will render Windows unbootable.
Therefore installing a Linux system should not be attempted once a Bootcamp Windows partition exists.
However, a lot of Linux distributions work perfectly well as a virtual machine in something like Parallels, VMWare Fusion (both paid-for programs) or in VirtualBox, which is free to use.
Yes I know to use Bootcamp to delete the partition, but I am asking whether it has ever failed or had glitches of any sort.
-and I'm asking whether a Linux partition can be made instead of a Windows one.
-I know that in fact one can have Mac, Windows, and Linux partitions (with some extra steps), so one of your comments isn't necessarily true. Regardless, I'm only interested in the possibility of a Mac/Linux setup.
I have not heard of any problems removing Windows via Bootcamp Assistant.
Yes, a partition can be created for use by Linux rather than Windows but not through Bootcamp, as such.
Yes, you can have OSX, Windows and Linux running on the same disk - either by installing Windows and Linux in EFI mode, or by manually creating/changing the hybrid MBR created by Bootcamp/Disk Utility, though it is likely to cause problems in the future.
Yes, you can have Linux running side by side with OSX though that too can be problematic.
It's strange that having Linux run alongside OSX may be a problem, since OSX is a derivative of Linux.
I assume that in order to create a Linux partition I would have to use disc utility. Is this correct?
Anyway, I will probably take the virtual box route. I'm mostly interested in the Linux programming environment, so whatever I do in Lnux shouldn't be too demanding.