lprm
removes print jobs from the queue
TLDR
Cancel all jobs
$ lprm -
Cancel specific job$ lprm [job_id]
Cancel jobs on printer$ lprm -P [printer] -
Cancel user's jobs$ lprm [username]
Cancel job by ID on printer$ lprm -P [printer] [job_id]
SYNOPSIS
lprm [options] [job]
DESCRIPTION
lprm removes print jobs from the queue. It cancels pending or processing jobs.The tool is the BSD-style job removal command. Users can only remove their own jobs unless root.
PARAMETERS
JOB
Job ID or "-" for all.-P PRINTER
Specify printer.-E
Force encryption.-U USER
Specify username.--help
Display help information.
INSTALL
sudo apt install lpr
sudo dnf install cups-client
sudo apk add cups-client
sudo zypper install cups-client
CAVEATS
Requires CUPS. Users limited to own jobs. May not stop printing in progress.
HISTORY
lprm originated in BSD Unix for removing print jobs, now implemented by CUPS.
