qdel(1B)
qdel(1B) π β¨
okay bestie, so this is the tea on qdel β the PBS Professional command that deletes jobs. it's giving "cleanup crew but make it iconic" π§Ήπ
SYNOPSIS
qdel [ -Wforce | -Wsuppress_email=<N>] [-x] <job ID> [<job ID> ...]
qdel --version
DESCRIPTION
The qdel command deletes jobs in the order given, whether they are at the local server or at a remote server. slay π
Usage β¨
So like, you use qdel without options to delete queued, running, held, or suspended jobs. but the -x option? that gives it the additional capacity to delete finished or moved jobs too. lowkey powerful. with the -x option, this command can be used on finished and moved jobs, in addition to queued, running, held, or suspended jobs. obsessed π«Ά
When this command is used without the -x option, if job history is enabled, the deleted job's history is retained. the -x option is used to additionally remove the history of the job being deleted. no cap, that's the difference. π₯
If someone other than the job's owner deletes the job, mail is sent to the job's owner, or to a list of mail recipients if specified during qsub. see the qsub(1B) man page. periodt. π¬
If the job is in the process of provisioning, it can be deleted only by using the -W force option. like, that's the only way. don't forget. π
How Behavior of qdel Command Can Be Affected π
The server's default_qdel_arguments attribute may affect the behavior of the qdel command. this attribute is settable by the administrator via the qmgr command. it may be set to "-Wsuppress_email=<N>". the server attribute is overridden by command-line arguments. see the pbs_server_attributes(1B) man page. iykyk π
Sequence of Events π
- The job's running processes are killed.
- The epilogue runs.
- Files that were staged in are staged out. This includes standard out (
.o) and standard error (.e) files. - Files that were staged in or out are deleted.
- The job's temp directory is removed.
- The job is removed from the MOM(s) and the server.
like, that's the whole little journey. bye job bestie πβ¨
Required Privilege π
A PBS job may be deleted by its owner, an Operator, or the administrator. The MoM deletes a PBS job by sending a SIGTERM signal, then, if there are remaining processes, a SIGKILL signal. so dramatic but honestly same π
OPTIONS π
(no options)β can delete queued, running, held, or suspended jobs. does not delete job history for specified job(s). classic move.-W forceβ deletes the job whether or not the job's execution host is reachable. deletes the job whether or not the job is in the process of provisioning. cannot be used with the-Wsuppress_emailoption. β οΈ
If the server can contact the MoM, this option is ignored; the server allows the job to be deleted normally. If the server cannot contact the MoM or the job is in the E state, the server deletes its information about the job. like, it's the nuclear option but make it respectful π
-Wsuppress_email=<N>β sets limit on number of emails sent when deleting multiple jobs.- If
N >= 1andNor more job IDs are given,Nemails are sent. - If
N >=1and less thanNjob IDs are given, the number of emails is the same as the number of jobs. - If
N = 0, this option is ignored. - If
N = -1, no email is sent.
- If
The <N> argument is an integer. note that there is no space between "W" and "suppress_email". cannot be used with the -Wforce option. okay but why no space tho π that's giving typo energy but it's real, bestie.
-xβ can delete running, queued, suspended, held, finished, or moved jobs. deletes job history for specified job(s). the extra mile. we love to see it π₯--versionβ theqdelcommand returns its PBS version information and exits. this option can only be used alone. no mixing, no mingling. solo act only πββοΈ
OPERANDS π¦
The qdel command accepts one or more space-separated job ID operands. these operands can be job identifiers, job array identifiers, subjob identifiers, or subjob range identifiers. (yes, "dentifiers" is literally a typo in the original manual but we're not fixing it, we're just acknowledging it exists π)
Job IDs have the form:
<sequence number>[.<server name>][@<server name>]
Job arrays have the form:
<sequence number>[][.<server name>][@<server name>]
Subjobs have the form:
<sequence number>[<index>][.<server name>][@<server name>]
Ranges of subjobs have the form:
<sequence number>[<first>-<last>][.<server name>][@<server name>]
Job array identifiers must be enclosed in double quotes for some shells. so like, don't forget the quotes or your shell will simply not understand you. been there. π
STANDARD ERROR π
The qdel command writes a diagnostic message to standard error for each error occurrence. so if something goes wrong, it tells you. every single time. no silent treatment here. π
EXIT STATUS π
- Zero β upon successful processing of input. slay, you did it.
- Greater than zero β upon error. oops. π
SEE ALSO π
pbs_queue_attributes(7B), pbs_server_attributes(1B), qsub(1B), qsig(1B), pbs_deljob(3B)
like, go read those too if you're obsessed with knowing everything. main character energy. π
later besties, this page was brought to you by PBS Professional, Local release, 6 May 2020 β¨ππ«Άπ and remember: delete responsibly π
π¦ where this page comes from
- nixos 26.05: openpbs 23.06.06-unstable-2026-04-02
- nixpkgs unstable: openpbs 23.06.06-unstable-2026-04-02
- Copyright (C) 1994-2021 Altair Engineering, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms