Removing printjobs from the queue

You may only modify printjobs which you sent. You can either remove the last job you sent, remove all of your jobs, or remove only one of several printjobs. All three procedures are explained here. You must be logged in as yourself on the machine you sent the job from for this to work. If these procedures do not successfully remove your printjob contact admin@structbio.vanderbilt.edu for assistance.


  • The lpq tool will show you which jobs are currently in the various queues that your machine can spool print jobs to. To see the queue for a system's default printer:
        % lpq
        Printer: lp@tintin  (dest chazinhp@reef)
         Queue: 3 printable jobs
         Server: no server active
         Status: job 'papowell@h4+17922' removed at 18:15:13.981
         Rank   Owner/ID                  Class Job Files       Size	Time
        1      papowell@h4+17959            A 17959 (stdin)		3	18:23:24
        2      papowell@h4+17962            A 17962 (stdin)		6	18:23:30
        3      papowell@h4+17970            A 17970 (stdin)		5	18:23:35
    	
    To see queue information for a print spool other than your machine's default, use the -P option as in:
    % lpq -Pcolor2

  • To remove the last job you sent to the default printer simply type lprm at the prompt, like so:
    % lprm
    or the lasts job you sent to the color2 queue:
    % lprm -Pcolor2

  • To remove all of your jobs in the default queue use your username, as below:
    % lprm papowell
    or from the color queue:
    % lprm -Pcolor papowell

  • To remove a specific job from the default queue and leave the rest use lprm with the job ID, located in the 4th field of the lpq output, as below:
    % lprm 17959

    If your job no longer shows up in the output of the lpq command (see below), it has been successfully removed:
        % lpq
        Printer: lp@h4  (printing disabled)
         Queue: 3 printable jobs
         Server: no server active
         Status: job 'papowell@h4+17922' removed at 18:15:13.981
         Rank   Owner/ID                  Class Job Files       Size	Time
        1      papowell@h4+17962            A 17962 (stdin)		6	18:23:30
        2      papowell@h4+17970            A 17970 (stdin)		5	18:23:35
    	

  • Again, use the -P<queue> option to remove jobs from a queue other than the default