lprm(1)

lprm1

Cancel print jobs

Usage

lprm [-h hostname [:port]] [-E] [-U username] [-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. Note: This option must occur before all others.

Examples

Cancel the current job on the default printer:

    lprm

Cancel job 1234:

    lprm 1234

Cancel all jobs:

    lprm -

Releases

19 releases since Debian 1.1 (Buzz); the text changed 8 times.

  1. 1.1–2.0
  2. 2.1
  3. 2.2
  4. 3.0
  5. 3.1–4.0
  6. 5.0–9
  7. 10
  8. 11–12
  9. 13–Arch

-E since Debian 13 (Trixie); -P since Debian 3.0 (Woody); -U since Debian 13 (Trixie); -h since Debian 13 (Trixie).

- until Debian 12 (Bookworm).

Conforming to

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

From cups 2:2.4.20-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.