Name

lprm

Synopsis

lprm [options] [jobnum] [user]

Description

Remove a print job from the print spool queue. You must specify a job number or numbers, which can be obtained from lpq. A privileged user may use the user parameter to remove all files belonging to a particular user or users.

Options

-P printer

Specify printer name. Normally, the default printer or printer specified in the PRINTER environment variable is used.

-

Remove all jobs in the spool owned by user.

Get Linux in a Nutshell, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.