2 .\" Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution.
3 .\" Copyright (C) 2006, Sun Microsystems, Inc. All Rights Reserved
4 .TH LPRM 1B "Feb 25, 2017"
6 lprm \- remove print requests from the print queue
10 \fB/usr/ucb/lprm\fR [\fB-P\fR \fIdestination\fR] [\fB-\fR] [\fIrequest-ID\fR]...
16 The \fBlprm\fR utility removes print requests (\fIrequest-ID\fR) from the
20 Without arguments, \fBlprm\fR deletes the current print request. \fBlprm\fR
21 reports the name of the file associated with print requests that it removes.
22 \fBlprm\fR is silent if there are no applicable print requests to remove.
25 Users can only remove print requests associated with their user name. See
26 Notes. If a superuser executes \fBlprm\fR and specifies the \fIuser\fR operand,
27 \fBlprm\fR removes all print requests belonging to the specified user.
30 The print client commands locate destination information using the "printers"
31 database in the name service switch. See \fBnsswitch.conf\fR(4),
32 \fBprinters\fR(4), and \fBprinters.conf\fR(4) for details.
35 The following options are supported:
39 \fB\fB-P\fR \fIdestination\fR\fR
42 The name of the printer or class of printers (see \fBlpadmin\fR(1M)) from which
43 to remove print requests. Specify destination using atomic, URI-style
44 (\fIscheme\fR\fB://\fR\fBendpoint\fR), or POSIX-style
45 (\fIserver\fR\fB:\fR\fIdestination\fR) names. See \fBprinters.conf\fR(4) for
46 information regarding the naming naming conventions for destination names.
55 If a user specifies this option, removes all print requests owned by that
56 user. If a superuser specifies this option, removes all requests in the print
57 queue. Job ownership is determined by the user's login name and host name on
58 the machine from which \fBlpr\fR was executed. See Notes.
63 The following operands are supported.
67 \fB\fIrequest-ID\fR\fR
70 Removes a specific print request. Specify \fIrequest-ID\fR as the job number
71 (\fBJob\fR) associated with a print request and reported by \fBlpq\fR. See
81 Removes print requests associated with a specific user. Specify \fIuser\fR as
82 a valid user name. This option can only be used by a superuser.
87 \fBExample 1 \fRRemoving a Print Request
90 The following example removes request-ID \fB385\fR from destination
96 example% \fBlprm \(miP killtree 385\fR
103 The following exit values are returned:
110 Successful completion.
125 \fB\fB$HOME/.printers\fR\fR
128 User-configurable printer database
134 \fB\fB/etc/printers.conf\fR\fR
137 System printer configuration database
143 \fB\fBprinters.conf.byname\fR\fR
146 NIS version of \fB/etc/printers.conf\fR
152 \fB\fBou=printers\fR\fR
155 LDAP version of \fB/etc/printers.conf\fR
160 See \fBattributes\fR(5) for descriptions of the following attributes:
168 ATTRIBUTE TYPE ATTRIBUTE VALUE
170 Interface Stability Standard
175 \fBlp\fR(1), \fBlpc\fR(1B), \fBlpq\fR(1B), \fBlpr\fR(1B), \fBlpstat\fR(1),
176 \fBlpadmin\fR(1M), \fBnsswitch.conf\fR(4), \fBprinters\fR(4),
177 \fBprinters.conf\fR(4), \fBattributes\fR(5), \fBstandards\fR(5)
180 Users can only remove print requests associated with their user name. By
181 default, users can only remove print requests on the host from which the print
182 request was submitted. If a superuser has set \fBuser-equivalence=true\fR in
183 \fB/etc/printers.conf\fR on the print server, users can remove print requests
184 associated with their user name on any host. Superusers can remove print
185 requests on the host from which the print request was submitted. Superusers can
186 also remove print requests from the print server.
189 Some print servers send cancelation notification to job owners when their print
190 jobs have been cancelled. This notification usually comes in the form of an
191 email message. Cancelation notices cannot be disabled on a Solaris server.
194 When IPP is in use, the user is prompted for a passphrase if the remote print
195 service is configured to require authentication.