Guides Windows

Clear a stuck Windows print queue with PowerShell

A document is sitting at “Deleting” or “Error – Printing” and nothing behind it will print. Cancelling from the Printers window does nothing. Four commands fix it.

Applies to
Windows 10, 11, Server 2016+
You need
Local administrator
Time
About 3 minutes
Updated
November 2026

Symptoms

  • A job shows Deleting or Error – Printing and never leaves the queue.
  • Newer jobs pile up behind it on every computer that uses the printer.
  • Restarting the printer does not help. Restarting the PC sometimes does, briefly.

What is happening

Windows hands every print job to the Print Spooler service, which writes it to disk as a pair of files before sending it to the printer. If the printer rejects the job or the connection drops mid-stream, those files can stay on disk in a half-sent state. The spooler keeps retrying the same job and refuses to move on, and the Printers window is only asking the spooler politely.

The fix is to stop the spooler, delete the leftover files yourself, and start it again.

The fix

Open PowerShell as administrator: right-click Start, choose Terminal (Admin) or Windows PowerShell (Admin). Then run each step in order.

  1. 1

    Stop the Print Spooler

    This pauses printing for everyone on this machine until step 3.

    PowerShell
    Stop-Service -Name Spooler -Force
  2. 2

    Delete the stuck job files

    Every queued job lives in this folder as a .SHD and .SPL pair. Removing them clears the whole queue, including anything legitimate that was waiting.

    PowerShell
    Remove-Item -Path "$env:SystemRoot\System32\spool\PRINTERS\*" -Force -Recurse

    Note If you get Access is denied, the spooler is still running. Wait ten seconds and repeat step 1.

  3. 3

    Start the spooler again

    PowerShell
    Start-Service -Name Spooler
  4. 4

    Print a test page

    Send any small document. It should appear in the queue and clear within a few seconds.

Verify

Check that the service is running and the queue is empty.

PowerShell
Get-Service -Name Spooler | Select-Object Status, StartType
Get-PrintJob -PrinterName "*" | Measure-Object | Select-Object Count

Expected output

 Status  StartType
 ------  ---------
Running  Automatic

Count
-----
    0

If that didn’t work

If the job comes back after a few minutes, something is resubmitting it. Check these in order.

  • A print server. If the printer is shared from a server, the stuck job is on the server, not this PC. Run the same four steps there.
  • A bad driver. Remove the printer, delete its driver, and add it back with the current package driver from the manufacturer.
  • The printer itself. Power it off at the wall for thirty seconds. Some models hold a partial job in their own memory.

Still stuck? Email me the output of the Verify step and the printer model: aaron@aaronkinder.com.