Removes jobs from the line printer spooling queue.
lprm [ -P Printer ] [ JobNumber ] [ UserName ... ] [ - ]
The lprm command removes one or more jobs from the spool queue of a printer.
You cannot run the lprm command without specifying a job number, the - (minus sign) flag, or at least one user name.
Specifying a UserName parameter, or list of names, causes the lprm command to attempt to remove any jobs queued belonging to that user (or users).
You can remove an individual job from a queue by specifying its JobNumber. This job number is obtained by using the lpq command.
|-||Removes all jobs a user owns. Someone with root user authority can use this flag to remove all jobs from a queue. This flag is not valid for remote print.|
|-P Printer|| Specifies the queue associated with a specific Printer variable. If this flag is not specified, the following conditions occur:
lprm -P lp0 13
|/usr/bin/lprm||Contains the lprm command.|
|/etc/qconfig||Contains the configuration file.|
The lpq command, lpr command, qcan command.
Canceling a Print Job (qcan Command) in AIX Version 4.3 System User's Guide: Operating System and Devices.