Three are three ways to use the cancel command:
Cancel requests from a specific user on all printers or specific printers
Cancel the job currently printing
When you use the cancel command, a message tells you the request or requests are canceled, and the next request in queue is being printed.
You can cancel a print request only under the following conditions:
You are the user who submitted the request and you are logged in on the system from which you submitted the request.
You are the user who submitted the request on any client system and the print server has the “user-equivalence” option configured for the printer in its /etc/printers.conf file.
You are logged in as superuser, lp, or have assumed an equivalent role on the print server.
To cancel a specific request, you need to know its request ID. The request ID contains the name of the printer, a dash, and the number of the print request. For example, luna-185.