Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 15 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 '15 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.