$ lpoptions -x printer-name
Specifies the name of the printer to delete.
Deletes the specified printer.
$ cupsreject printer-name
This step prevents any new requests from entering the printer's queue while you are in the process of removing the printer.
$ cupsdisable printer-name
$ lpadmin -x printer-name
$ lpstat -l -p printer-name
The command output displays a message indicating the printer does not exist.
$ lpstat -l -p printer-name
The command output displays a message indicating that the printer does not exist.
The following example shows how to delete the printer luna from the print client terra and from the print server jupiter.
terra# lpoptions -x luna terra# lpstat -l -p luna jupiter# lpadmin -x luna jupiter# lpstat -l -p luna lpstat: Invalid destination name in list "luna"!