Linux and Unix lprm command

Quick links

About lprm
Syntax
Examples
Related commands
Linux and Unix main page

About lprm

Removes print requests from the print queue.

Syntax

lprm [ -P destination ] [ - ] [ request-ID] [user]

-P destinationThe 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-IDRemoves a specific print request. Specify request-ID as the job number (Job) associated with a print request and reported by lpq. See lpq.
userRemoves print requests associated with a specific user. Specify user as a valid user name. This option can only be used by a super-user.

Examples

lprm -P killtree 385

Removes request-ID 385 from destination killtree.

Related commands

lp
lpc
lpq
lpr
lpstat
lpadmin