using scancel [jobID]
command to cancel the submitted job.
For example,
hpcuser@x3002c0s7b0n0:~/sleep> squeue -u $USER JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON) 29759 compute sleep2 hpcuser R 0:01 1 lanta-c-065 29760 compute sleep3 hpcuser R 0:01 1 lanta-c-065 29754 compute sleep1 hpcuser R 0:04 1 lanta-c-065 hpcuser@x3002c0s7b0n0:~/sleep> scancel 29759 hpcuser@x3002c0s7b0n0:~/sleep> squeue -u $USER JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON) 29760 compute sleep3 hpcuser R 0:19 1 lanta-c-065 29754 compute sleep1 hpcuser R 0:22 1 lanta-c-065