How do I delete a print job?

From the command line, use lpq to view jobs in the queue and lprm to remove a job. Note that you need to use the -P flag if you wish to view or remove jobs from a queue other than the default.

You can use the command lpqall to view all of the queues.

For example:

moylek(107)lpq -P HH303-HPLJ4345
HH303-HPLJ4345 is not ready
Rank Owner Job File(s) Total Size
1st moylek 441 STDIN 12288 bytes

moylek(108)lpq -P HH303-HPLJ4345
HH303-HPLJ4345 is not ready
no entries

Once a print job has been transferred to the printer's memory, you cannot remove it via the lprm command; you'll need to go to the printer and press the Cancel Job button.