How do I delete a printer in Linux?

Warning: As always, please exercise caution when performing system maintenance, especially when initiating processes that can potentially delete data.

  • Log into the server as root or become root
  • Delete printer from CUPS
    • NOTE: Replace lp1 with the name of the printer being configured (lp1, lp20, etc.)
lpadmin -x lp1
  • Delete UV driver file:
    • NOTE: Replace lp1 with the name of the printer being configured (lp1, lp20, etc.)
rm /usr/spool/uv/lp1.dvr
  • Delete queue in UV (delete the line starting with LP1):
    • NOTE: Replace lp1 with the name of the printer being deleted (lp1, lp20, etc.)
vi /usr/spool/uv/sp.config
  • Remove the printer hostname (lp1) and IP address from the /etc/hosts file:
    vi /etc/hosts
  • Refresh the UV spooler:
usa -R
  • The printer is now  can be delete from the  Eclipse level