Linux and Unix lprm command
Quick links
About lprm
Syntax
Examples
Related commands
Linux and Unix main page
Removes print requests from the print queue.
lprm [ -P destination ] [ - ] [ request-ID] [user]
| -P destination | The name of the printer or class of printers (see lpadmin) from which to remove print requests. Specify destination using atomic, POSIX-style (server:destination), or Federated Naming Service (FNS) (.../service/printer/...) names. |
| - | If a user specifies this option, removes all print requests owned by that user. If a super-user specifies this option, removes all requests in the print queue. Job ownership is determined by the user's login name and host name on the machine from which lpr was executed. See NOTES. |
| request-ID | Removes a specific print request. Specify request-ID as the job number (Job) associated with a print request and reported by lpq. See lpq. |
| user | Removes print requests associated with a specific user. Specify user as a valid user name. This option can only be used by a super-user. |
lprm -P killtree 385
Removes request-ID 385 from destination killtree.
