Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (c) cancel(1)
EXAMPLES
1. To remove a job whose request ID is 123 in the default print queue, enter:
cancel 123
2. To remove a job whose request ID is 123 in the print queue for printer1, enter:
cancel 123 -Pprinter1
NOTES
Because race conditions are possible in the update of the lock le, the currently active request
may be incorrectly identied.
EXIT VALUES
The following exit values are returned by the cancel command:
0 Completion was successful.
>0 An error occurred.
RELATED INFORMATION
Commands: lp(1), lpstat(1).
527188-007 Hewlett-Packard Company 235