commands.sh

cancel

all

Cancel print jobs. See also: `lp`, `lpmove`, `lpstat`.

More info →

Examples (7)

Cancel the current job of the default printer (set with `lpoptions -d printer_name`)

Cancel the jobs of the default printer owned by a specific [u]ser

cancel -u username

Cancel the current job of a specific printer

cancel printer

Cancel a specific job from a specific printer

cancel printer-job_id

Cancel [a]ll jobs of all printers

Cancel [a]ll jobs of a specific printer

cancel -a printer

Cancel the current job of a specific [h]ost server and then delete ([x]) job data files

cancel -h server -x
made by @shridhargupta | data from tldr-pages