Cancel a print job via command line

To cancel your print job for any reason, do the following commands in a terminal:

List all print jobs (to see print jobs initiated by other users, you need root permissions):

lpq

Remove your print job by job ID. For example, if your job ID is 13, you would issue the command:

lprm 13