lprm(1)

lprm1

Cancel print jobs

Usage

lprm [-E] [-U username] [-h server [:port]] [-P destination [/instance]] [-] [job-id(s)]

Overview

lprm cancels print jobs that have been queued for printing. If no arguments are supplied, the current job on the default destination is canceled. You can specify one or more job ID numbers to cancel those jobs or use the - option to cancel all jobs.

Options

The lprm command supports the following options:

-E

Forces encryption when connecting to the server.

-P destination[/instance]

Specifies the destination printer or class.

-U username

Specifies an alternate username.

-h server[:port]

Specifies an alternate server.

Examples

Cancel the current job on the default printer:

    lprm

Cancel job 1234:

    lprm 1234

Cancel all jobs:

    lprm -

Releases

53 releases since Mac OS X 10.0; the text changed 1 time.

  1. 10.0–10.1.5
  2. 10.15–26.5

-E since macOS 10.15; -U since macOS 10.15; -h since macOS 10.15.

- until Mac OS X 10.1.5.

Conforming to

The CUPS version of lprm is compatible with the standard Berkeley command of the same name.

From cups 522.4 in macOS 26.5. Parsed by carta from the page's man source.