Canceling the Print job
Lprm removes a job, or jobs, from a printer's spool queue. Because the spooling directory is protected from users, using lprm is generally the only method through that a user might remove a job.
Syntax
lprm [ -P printer ] [ - ] [ job # .. ] [ user .. ]
Options
-P printer - Specifies the related queue with a specific printer (or else the default printer is used).
user - It Causes lprm to attempt to remove any jobs which are queued and belonging to which user (or users). That form of invoking lprm is useful only to the super-user.
- - Here A single '-' is provided, lprm would remove all jobs of a user. The spool queue will be emptied entirely if the super-user employs this flag.
job # - A user might remove an individual job through specifying its job number.
Note : cancel is the command that is used to cancel the print request in Solaris.
# cancel [ request-ID ... ]
# cancel epson-1