Skip to content

Using qdel

To Delete or Cancel your Job

Find out the job number from qstat:

$ qstat -an1
                                                            Req'd  Req'd   Elap
Job ID          Username Queue    Jobname    SessID NDS TSK Memory Time  S Time
--------------- -------- -------- ---------- ------ --- --- ------ ----- - -----
69580.hpcnode0  111111   workq    bigprimes   22234   1   8    5gb 120:0 R 23:47 hpcnode6/2*8
69581.hpcnode0  111111   workq    bigprimes   22698   1   8    5gb 120:0 R 23:47 hpcnode6/3*8
$

Then delete your job from the queue using the qdel command: qdel job_id.
Example:

$ qdel 69580.hpcnode0

If your job is an array job then specify the array job ID or the sub-job ID e.g.:

$ qdel 28846[].hpcnode0 

or

$ qdel 28846[5].hpcnode0

Type man qdel for the online manual pages.