p Options and arguments: l -tag -width indent t Fl P Ns Ar printer Specify the queue associated with a specific .Ar printer (otherwise the default printer is used). t Fl w Ar maxwait Specify the maximum time to wait in seconds for remote responses. The default is 300 seconds or 5 minutes. t Fl If a single .Sq Fl is given, .Nm will remove all jobs which a user owns. If the super-user employs this flag, the spool queue will be emptied entirely. t Ar user Causes .Nm to attempt to remove any jobs queued belonging to that user (or users). This form of invoking .Nm is useful only to the super-user. t Ar job # A user may dequeue an individual job by specifying its job number. This number may be obtained from the .Xr lpq 1 program, e.g.
p d -literal -offset indent % lpq -l 1st:ken [job #013ucbarpa] (standard input) 100 bytes % lprm 13 .Ed .El
p If neither arguments or options are given, .Nm will delete the currently active job if it is owned by the user who invoked .Nm .
p .Nm announces the names of any files it removes and is silent if there are no jobs in the queue which match the request list.
p .Nm will kill 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. .Sh ENVIRONMENT If the following environment variable exists, it is used by .Nm . l -tag -width PRINTER t Ev PRINTER If the environment variable .Ev PRINTER exists, and a printer has not been specified with the .Fl P option, the default printer is assumed from .Ev PRINTER . .El .Sh FILES l -tag -width /var/spool/output/*/lock/ -compact t Pa /etc/printcap Printer characteristics file. t Pa /var/spool/output/* Spooling directories. t Pa /var/spool/output/*/lock Lock file used to obtain the pid of the current daemon and the job number of the currently active job. .El .Sh DIAGNOSTICS .Dq Permission denied if the user tries to remove files other than his own. .Sh SEE ALSO .Xr lpq 1 , .Xr lpr 1 , .Xr lpd 8 .Sh HISTORY The .Nm command appeared in x 3.0 . .Sh BUGS Since there are race conditions possible in the update of the lock file, the currently active job may be incorrectly identified.