Name

cancel

Synopsis

    cancel [options] [printer]

Cancel print requests made with lp. The request can be specified by its ID, by the printer on which it is currently printing, or by the username associated with the request (only privileged users can cancel another user’s print requests). Use lpstat to determine either the id or the printer to cancel.

Common Options

id

Cancel print request id.

-u user

Cancel request associated with user.

GNU/Linux and Mac OS X Options

GNU/Linux and Mac OS X use CUPS, the Common Unix Printing System. See http://www.cups.org for more information. Besides the above options, the CUPS cancel command accepts the following:

-a

Remove all jobs from the given destination.

-h host

Treat host as the name of the print server. The default is localhost or the value of the CUPS_SERVER environment variable.

Get Unix in a Nutshell, 4th 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.