LinuxCommandLibrary

qdel

TLDR

Delete job

$ qdel [job_id]
copy
Delete multiple jobs
$ qdel [job_id1] [job_id2] [job_id3]
copy
Delete all user's jobs
$ qdel -u [username]
copy
Force delete
$ qdel -f [job_id]
copy
Delete job array
$ qdel [job_id][]
copy

SYNOPSIS

qdel [options] jobids_...

DESCRIPTION

qdel deletes jobs from the batch job queue. It's part of PBS/Torque, SGE, or similar job scheduling systems used on HPC clusters.

PARAMETERS

-f, --force

Force deletion.
-u user
Delete all jobs for user.
-W time
Delay deletion.
-p
Purge job (remove all traces).

EXAMPLES

$ # Delete single job
qdel 12345

# Delete multiple jobs
qdel 12345 12346 12347

# Delete range
qdel 12345-12350

# Force kill
qdel -f 12345

# Delete all my jobs
qdel -u $(whoami)

# Delete array job
qdel 12345[]

# Delete specific array task
qdel 12345[5]
copy

JOB STATES

Jobs can be deleted in these states:
- Queued (Q)
- Running (R)
- Held (H)

CAVEATS

Syntax varies between PBS, SGE, SLURM. Running jobs may take time to terminate. Admin may restrict deletion.

HISTORY

qdel is part of the PBS (Portable Batch System) originally developed at NASA Ames Research Center.

SEE ALSO

qsub(1), qstat(1), qhold(1), scancel(1)

Copied to clipboard