Remove a Printer from Linux

Remove the printer’s entry from the UV spooler configuration file using a text editor (e.g. vim)

vim /usr/spool/uv/sp.config

Refresh the UniVerse spooler to re-read the configuration file:

usa -R

Remove the UniVerse driver file (e.g. lp15, replace lp15 with the appropriate print queue number):

rm /var/spool/uv/lp15.dvr
or
rm /usr/spool/uv/lp15.dvr

Remove the printer’s entry in the /etc/hosts file using a text editor (e.g. vim):

vim /etc/hosts

Remove the CUPS queue (e.g. lp15, replace lp15 with the appropriate print queue number):

lpadmin -x lp15