It has happened with me a number of times that documents got stuck in my print queue like super-glue ((http://en.wikipedia.org/wiki/Cyanoacrylate))!
Perhaps it was the wrong document or maybe the wrong printer chosen. In any case, going to printer options and cancelling/deleting the print would result in all but the last document being stuck at “deleting…” state in the printer queue. Nothing would remove that last document from the list of print jobs. And you know that until that small little document is not cleared off the list no other work can be done without getting distracted!
In case this was happening on my laptop, I would safely restart my computer and things would get back to normal (a very generic fix to many Microsoft Windows related issues). However, last day when it happened on our production server (Windows 2003), I had no options but to search for restart alternatives.
A brief search led me to sites ((http://www.computer-2tr.com/tips/05/20050815.html)) that recommended to restart the print spooler service ((In computer science, spooling refers to a process of transferring data by placing it in a temporary working area where another program may access. It is also a program that queues print files for one or more printers and sends them to the printer one at a time.)). Quite an obvious solution!
Update: Subsequent to this issue, I have developed Print Service Manager — a software to easily clear print queues.
Simple commands to restart print spooler service:
c:> net stop spooler↵ c:> del %systemroot%System32spoolprinters* /Q↵ c:> net start spooler↵
Open up a command prompt (Start -> Run -> type “cmd” -> Ok) and key in the net stop… and nest start… commands one after the other. This should do the trick in most systems without requiring a restart. I have even written a simple batch file that will do the same in one click.
Download [Download not found]
Download this file and store it in an accessible place. Whenever deleting print queue fails, simply run this batch file. It will take less than 30 seconds to restart the print spooler service and would subsequently clear the print queue.
This batch file works on Windows 2003, Windows XP, Windows Vista and Windows 7. Note that for Windows Vista and above, you need to run thus batch file as an administrator.
In case, restarting the spooler service does not clear the queue, try deleting the file again after restarting the spooler service. If all fails… hail ‘restart!’