Lprm will send a request to remove jobs from a spool queue. Lprm is normally the only method by which a user may remove a job. The jobs to be removed are specified by the job number or user name; with no specifiers the first removable in a queue will be selected for removal.
taurus[40]% lpr windoze.txt taurus[41]% lpq HPLaserJet is ready and printing Rank Owner Job File(s) Total Size active dan 182 windoze.txt 3072 bytes taurus[42]% lprm 183 taurus[43]% lpq HPLaserJet is ready no entries taurus[44]% |
Again, the -P flag is supported.