Altering Batch Jobs
The command scancel can be used to remove a job from the queue. For example,
scancel 123
will remove job 123 from the queue.
If job 123 is pending, it will be removed from the queue. If job 123 is running, the processes associated with the job will be killed prior to removing the job from the queue.