TrumanWong

lprm

Delete a print job from the print queue

Supplementary instructions

lprm command is used to delete print tasks in the print queue. Unfinished printer tasks will be placed in the printer storage queue. This command can be used to cancel tasks that are often not sent to the printer.

grammar

lprm(options)(parameters)

Options

-E: Force encryption when connecting to the print server;
-P: Specify the target printer to accept the print task;
-U: Specify an optional username.

Parameters

Print task: Specify the print task number to be deleted.

Example

Remove task No. 102 from the printer hpprint:

lprm -Phpprint 102

Remove task No. 101 from the default printer:

lprm 101