Skip to content

Deleting Jobs

Description

This page provides information on how to delete jobs.

scancel

Use the scancel command to delete active jobs

Syntax

scancel [options] <jobid> ...

scancel can be restricted to a subset of jobs, using the following options with the related value, e.g:

-u, --user $USER    jobs of current user
-A, --account       jobs under this charge account
-n, --jobname       jobs with this job name
-p, --partition     jobs in this partition
-t, --state         jobs in this state

Examples

Delete specific job:

scancel 12345678

Delete all running jobs:

scancel --state=R

Delete all of your jobs:

scancel --user $USER