Clear entire print queue in OS X with a Terminal command

If you need to clear your entire print queue in Mac OS X for whatever reason, there is a simple terminal command you can type to do the job.

Simply:

  1. Launch Terminal
  2. Type cancel -a -
  3. Success!

All print jobs in the print queue should now be gone!

I have only tested this in Mac OS X 10.5 Leopard. I assume it will work in 10.4 Tiger as well.

36 thoughts on “Clear entire print queue in OS X with a Terminal command

  1. What a simple sloution! I’ve tried everything on osx, but it seems like I’d rather take this terminal thing more seriously… Thank you.

  2. Works like MAGIC. I spent a month living with Canon printer job stuck in the queve. My MacBook battery life slid down to about 1 hour per charge and the cooling fan was working all the time, making noise like I was next to a highway! :-( I was ready to take the machine to Apple for repair and only accidently thought of a printer queve and a possibility of a bad printer driver causing this. Your solution was “Chris-sent”. ;-) Thank you.

  3. Thanks! My mac (mbp, snow leopard) took 30 seconds to go to sleep because of a stuck printer job. I’ve just typed “cancel -a-” in the terminal and the problem was solved. Nice!

  4. Pingback: Let Mac users unclog print queues Drija

  5. Thanks! “cancel -a -” just took care of a job that wouldn’t stop requeuing itself on my Snow Leopard (Mac OS X 10.6.6) system!

  6. Hey! Great! Not really… for someone who is just being introduced to these machines. Yes, we still exist; people who don’t need computers for everything they do.
    I have no idea what you mean by “Launch Terminal”. Please remember us folks that don’t know where anything is yet… no we’re not stupid; MOST professions operated without computers a very short time ago, including doctors and lawyers and other supposed positions of intelligence.

    • To E

      Go to finder
      go to Applications folder
      Scroll down to utilities folder
      enter it
      go to terminal
      double click
      wait for prompt
      Type cancel -a-
      Job done!

  7. To original poster.

    Thank you very much. Had an image stuck on hold for a long time.
    How in God’s name did you find this solution?

  8. If I recall correctly, I did some searches online and somehow stumbled across the right keywords to pull up this solution. I don’t remember what site it was, but whoever it was, thank you!

  9. My brother’s Macbook pro was taking almost a full minute to go to sleep. I had read that someone had found that jobs in the print queue were causing this. I ran this for him and it took care of the problem.

  10. fantastic, works on snow leopard server to
    had some jobs stuck in the print server
    cancel -a – ….bam gone
    thanks very much

  11. Pingback: Let Mac users unclog print queues - Admins Goodies

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>