If you are going to cancel print requests of other users, become superuser or lp.
Determine the request IDs of the print requests to cancel by using the lpstat command.
See "How to Check the Status of Print Requests" for more details.
Cancel a print request by using the cancel command.
$ cancel request-id | printer-name |
Verify the print requests are canceled.
$ lpstat -o printer-name |
In the following example, the command cancels the luna-3 and luna-4 print requests.
$ cancel luna-3 luna-4 request "luna-3" cancelled request "luna-4" cancelled |
In the following example, the command cancels the print request that is currently printing on the printer luna.
# cancel luna request "luna-9" cancelled |