You can use the cancel(1) to cancel print requests from printer queues or to cancel jobs that are printing. There are three ways to use the cancel command:
Cancel requests by request identification number (request ID)
Cancel requests from a specific user on all, or specified, printers
Cancel the job currently printing
When you use cancel, a message tells you the request(s) are canceled, and the next request in queue is printed. You can cancel a print request only if you are:
The user who submitted the request and you are logged in on the system from which you submitted the request
The user who submitted the request on any client system and the print server has the "user-equivalence" option configured for the printer in it's /etc/printers.conf file.
Logged in as superuser or lp on the print server.
To cancel a specific request, you need to know its request ID. The request ID is comprised of the name of the printer, a dash, and the number of the print request--for example, luna-185. When you submit the print request, the request ID is displayed. If you do not remember the print request ID, you can find it by using the lpstat command with the -o printer option.