This command allows you to cancel one or more jobs.

The general format is:

scancel [OPTIONS...] [job_id[_array_id][.step_id]] [job_id[_array_id][.step_id]...]

E.g. to cancel a job name 12345 use

scancel 12345

To cancel the element ID 15 in a job array of a job number 12445 use:

scancel 12445_15

To cancel the step ID 1 in a job 6666 use:

scancel 6666.1

To cancel all the jobs for a user bob use:

scancel -u bob

Additional Documentation

SLURM webpages