Generally known command line options for the lprm and cancel commands are listed in the following table.
cancel option |
lprm option |
remove job request |
supported |
---|---|---|---|
printer ... |
-P<printer> |
select print queue |
yes |
- |
remove all jobs owned by the user |
yes |
|
requestid ... |
job# ... |
remove specified jobs |
yes |
-u<userlist> |
user ... |
remove jobs from user |
yes |
printer ... |
[no argument] |
remove active job when owned by user |
yes |
There may be specific command line options available in specific LP host implementations, which are not listed in the above table.
When removing print jobs from the LP print queue, a distinction between print jobs cannot be made on the original host where the print job was submitted. The LPD protocol does not provide a mechanism to make this distinction when removing jobs.
For example, the jobs "312vaxhost.myqueue" and "312unixhost.myqueue" (lpq long format) cannot be distinguished from one another, and will both be referred to from a host system with jobnumber 312 and print queue "myqueue". In such case both print jobs will be removed from the LP print queue.