Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I know that to remove a scheduled at job I have to use atrm "numjob1 numjob2", but is there an easy way to do that for all the jobs?

share|improve this question

4 Answers 4

up vote 12 down vote accepted

You can run this command to remove all the jobs at the atq

 for i in `atq | awk '{print $1}'`;do atrm $i;done
share|improve this answer
variation on this answer at -l | awk '{printf "%s ", $1}' | xargs atrm –  Serg Apr 24 at 10:11

You could do something like this:

for i in $(atq | cut -f 1); do atrm $i; done
share|improve this answer
In FreeBSD it's cut -f3 First column is date –  David Jashi Oct 26 '14 at 9:51

This seems to me a short line:

atrm $(atq | cut -f1)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.