Linux How to remove printer from command line

To remove the printer PrinterName

lpadmin -x PrinterName

To check that it has been removed:

lpstat -p PrinterName -l

You must have an error indicating that the printer does not exist.