Last updated: December 03, 2026
Quick Answer: In 3 steps, clear the stuck jobs in CUPS, then restart the CUPS service if the queue keeps retrying. If the printer still shows the same jobs after that, remove the queue’s holding state from the web interface or delete the jobs by ID from the command line. For the command details, see the CUPS cancel man page and the CUPS lpstat man page.
Key takeaways
- A retry loop usually means CUPS has jobs it cannot finish, not that Linux has lost the printer forever.
- Start with the exact job IDs from
lpstatorlpq; do not guess. - Canceling one job may not clear the queue if the printer is held offline or CUPS is still retrying it.
- Restarting CUPS can clear a stuck spool state, but it should come after canceling jobs.
- The web interface can help when the command line says a job is gone but the queue still looks busy.
What should I do first?
Start by listing the jobs, then cancel the ones that are retrying. The two commands most people need are lpstat and cancel, and they work on the same CUPS print queue you see in the printer list.
- Run
lpstatto list the queue and note the job IDs, such asprinter-23or similar CUPS output. - Run
lpqif your system uses it, so you can compare the job list and confirm which jobs are still active. - Run
cancelwith the exact job ID, not the printer name alone, so CUPS removes that job from the queue. - Run
cancel -aon the printer if several jobs are stuck and you want to clear the whole queue at once. - Check
lpstatagain to make sure the retrying jobs are gone and the queue is empty.
That sequence is the cleanest answer when the problem is one or two bad jobs. It is a good starting point because it avoids touching printer setup or driver files, which belong to a different problem. If the queue fills again within a minute or two, the printer or a filter may still be forcing CUPS to retry.
How do I delete retrying Linux print jobs?
Delete retrying Linux print jobs by canceling the job IDs one by one or by clearing every job in the printer queue. The command-line path is faster when the same job keeps coming back after a failed print attempt.
Use cancel job-id when you want to keep the rest of the queue. Use cancel -a printer-name when the queue is full of stale jobs and you want a clean slate. If lpq still shows the job after cancel, the job may be held by the backend or re-submitted by a client that still thinks it needs to print.
| Situation | Tool | Best action | Trade-off |
|---|---|---|---|
| One stuck job | cancel |
Remove a single job ID | Leaves other jobs alone |
| Many stale jobs | cancel -a |
Clear the printer queue | Deletes all queued jobs |
| Queue looks empty but prints still retry | lpstat, then CUPS restart |
Clear CUPS state | Interrupts active print handling for a short time |
| GUI cleanup needed | CUPS web interface | Remove jobs in the queue view | Less precise than job IDs |

This is the part many generic guides miss: retrying jobs are often symptoms, not the cause. If a client resends the same file, or the printer stays paused, the queue can refill after a successful cancel. That is why a job ID check matters more than a broad “clear all” reflex.
How do I restart CUPS to clear the queue?
Restart CUPS after the jobs are canceled if the queue still shows retrying activity or the web interface still lists old jobs. A restart clears the daemon’s active state, which can free a queue that is stuck even after cancel has run.
Use your system’s service command for CUPS, such as systemctl restart cups on many Linux systems. After the restart, check the queue again with lpstat or the CUPS web interface. If the queue is empty but the printer keeps accepting the same job, the problem is likely upstream of CUPS, not inside the queue itself.
Do not start with a restart if the printer has a long line of jobs you still need. A restart can interrupt active handling and hide which job caused the loop. Clear the job list first, then restart only if the queue keeps retrying.
For readers who want the wider view of how to clear a print queue, the key idea is the same across most systems: stop the jobs, then reset the spooler if the state is stuck. On Linux, CUPS is the piece that matters here.
Can I remove jobs from the CUPS web interface?
Yes, you can remove jobs from the CUPS web interface when the command line is awkward or the queue still looks busy after a cancel. The web view is useful because it shows the printer, the job state, and the current queue in one place.
Open the CUPS page for your local printing service, find the printer, and remove the listed jobs from the job view. If a job says it is held, paused, or retrying, deleting it there can be easier than matching job IDs by hand. The trade-off is that the web interface may not be as precise as cancel job-id if you only want to remove one item.
This route is best for a quick cleanup on one machine. It is a poor fit when you are handling several printers or need a repeatable fix on a server, because the command line gives you better control over exact job IDs and queue names.
Why do CUPS jobs keep retrying?
CUPS jobs keep retrying when the printer, backend, or client does not finish the job cleanly. A paused printer, a vanished connection, or a bad filter can leave the same job in the queue long after the paper path has stopped moving.
A generic Linux printing problem is often broader than the queue itself. If the printer is offline, CUPS can keep trying for the same job until you cancel it or remove the printer queue’s state. If the queue retries again after a restart, the cause is usually outside the queue: the printer is not reachable, the job data is bad, or the client keeps resubmitting it.
One useful check is whether only one file retries or every file retries. A single bad job points to document data or a corrupt submission. Every job retrying points more toward the printer link or the CUPS backend. If you are not sure whether it is one job or the whole queue, consult your printer administrator or another qualified professional, and compare the job state with the CUPS documentation before changing more settings. That difference can save time because it tells you whether to clear one job or treat the queue as the symptom of a bigger printing fault.
The CUPS project documents job control and queue management in its own manuals, and the lpstat, lpq, and cancel commands are the core tools for this job. The Linux Foundation also maintains CUPS-related documentation at https://openprinting.github.io/cups/, and the CUPS man pages are the best source for exact command syntax.
What should I avoid when the queue keeps coming back?
Avoid deleting random files from the spool directory unless you already know the queue is stopped. That can leave CUPS in a worse state than the original retry loop, because the service may still think the job exists even after the file is gone.
Do not confuse a held job with a paused printer. Held jobs can often be canceled cleanly, while a paused printer may need the queue cleared and then the printer resumed. Do not keep hammering the print button either; if a client sends the same 20-page job three times, the queue will look broken even after the first cancel.
A good rule is simple: use lpstat or lpq to identify the job, use cancel to remove it, and use a CUPS restart only if the queue state stays stuck after that. That order keeps the cleanup focused and avoids turning one retry loop into a broader Linux printing mess.
Why do linux print jobs keep retrying?
Linux print jobs keep retrying when CUPS cannot complete the job and keeps the job in the queue instead of dropping it. A printer that is offline, paused, or unreachable is the most common reason, but a bad filter or a client that resubmits the file can do the same thing.
The sign to watch for is repetition. If the same job ID stays visible in lpstat or lpq after canceling, the queue is not just busy; it is stuck in a retry state that needs either a harder cancel or a CUPS restart.
How do i delete all jobs in cups?
Delete all jobs in CUPS with cancel -a on the printer if you want to empty that queue at once. That removes the queued jobs for that printer instead of targeting each job ID one by one.
This is the quickest option when the queue is full of stale retries. It is also the bluntest one, so it is wrong for a queue that still contains documents you want to keep.
How do i restart cups to clear the queue?
Restart CUPS after the jobs are canceled if the queue still shows old state or continues retrying. On many Linux systems that means restarting the CUPS service with the system service command, then checking lpstat again.
A restart clears the daemon’s active state, but it does not fix an offline printer or a bad job file. If the queue comes back after the restart, the next step is to look at the printer connection and the job source, not to keep restarting CUPS on loop.
Drafted with AI; not yet reviewed by a person.