qdel(1B)

πŸ“¦ version 23.06.06-unstable-2026-04, in nixos 26.05, nixpkgs unstable

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 🌈

  1. The job's running processes are killed.
  2. The epilogue runs.
  3. Files that were staged in are staged out. This includes standard out (.o) and standard error (.e) files.
  4. Files that were staged in or out are deleted.
  5. The job's temp directory is removed.
  6. 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_email option. ⚠️

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 >= 1 and N or more job IDs are given, N emails are sent.
    • If N >=1 and less than N job 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.

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 β€” the qdel command 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