For AVR, the bootloader can be erased. The Arduino IDE makes it difficult (but not impossible) to accidentally erase the bootloader.
The SAM bootloader is ROM. Read Only Memory. It can't be erased without physically destroying the chip with a hammer.