lprm
Cancel queued print jobs of a server. tldr-pages
On several platforms
Several platforms
Cancel current job on the default printer
lprmIdentifyCancel a job of a specific server
lprm -h server job_idIdentifyCancel a job of a specific server in a specific port
lprm -h server:port job_idIdentifyCancel multiple jobs with an encrypted connection to the server
lprm -E job_id1 job_id2 ...IdentifyCancel all jobs
lprm -IdentifyCancel the current job of a specific printer or class
lprm -P destination/instanceIdentify