To cancel a job use scancel:

  • scancel <jobid>. Cancels your job with provided identifier.
  • scancel -u <username>. Cancels all your jobs.
  • scancel -u <username> -p <partition>. Cancels all your jobs in the specified partition.
  • scancel --state=PENDING -u <username>. Cancels all your jobs that are pending (i.e. not running and waiting in the queue).