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

How do I manage UniVerse print spooler?

To administer print jobs in UniVerse spooler, first log into the server as root and run the following commands:

Displays the spooler status of all printers.

 usa 

To reload/refresh the spooler configuration file

 usa -R

To manually start the spooler

cd /u2/uv
bin/usd /usr/spool/uv -t 

Resets the print spooler for this specific printer.

usa +o -p lp# 

Displays the spooler status only for the specified printer.

usa -p lp# 

Displays all active print jobs.

usa -A 

Stops printing current job for the specified printer.

usa -b -p lp# 

Restarts current job for the specified printer.

usa -c -p lp# 

Cancels a specified job in the UniVerse spooler.

usm -k job# 

Cancels all print jobs from a specified UniVerse spooler.

usm -k -p lp#