Erase a CD or DVD on Linux

Instructions

Install xorisso with the following command:

sudo apt install xorriso

Then run the following command on your disk:

xorriso -outdev /dev/sr0 -blank as_needed