HP-UX System Administrator's Guide: Configuration Management

Removing a Printer Class
NOTE: When you remove a printer class, the printers in the class are not removed
you may still use them as individual printers. If you remove all printers from a class,
that printer class is automatically removed.
You cannot use HP SMH to remove a printer class.
Removing a Printer Class Using HP-UX Commands
See reject(1M), lpmove(1M), lpadmin(1M), and lpsched(1M) for details on the command
options.
1. Ensure that you have superuser capabilities.
2. (Optional) Deny any further print requests for the printer class. For example:
# /usr/sbin/reject -r"Use alternate printer." laser
3. (Optional): Determine if there are any jobs in the printer class’s queue. For example:
# /usr/bin/lpstat -o laser
4. (Optional) Move all pending print requests in the request directory for the printer
class to another printer or printer class. For example:
# /usr/sbin/lpmove laser laser2
5. Remove the printer class. For example:
# /usr/sbin/lpadmin -xlaser
6. Start the LP spooler if it is not already running:
# /usr/sbin/lpsched
120 Configuring Printers