Remove jobs from a line printer's spooling queue
lprrm [-Pprinter] [-] [jobnum ...] [user ...]
The lprrm utility removes one or more jobs from a printer's spool queue. Since the spooling directory itself is protected from users, lprrm is normally the only recourse a user has to remove a job. The job's owner is determined by the user's login name and hostname on the machine where the lpr command was invoked.
Note that if you don't specify any arguments or options, lprrm deletes the currently active job if you own it.
The lprrm utility announces the names of any files it removes and is silent if the queue contains no jobs that match the request list.
The utility kills off an active daemon, if necessary, before removing any spooling files. If a daemon is killed, a new one is automatically restarted upon completion of file removals.
Since there are race conditions possible in the update of the lock file, the currently active job may be incorrectly identified.
lpd, lpr, lprc, lprq, /etc/printcap
Printing chapter of the Neutrino User's Guide