Before You Begin
Assume the root role to remove an at job owned by any user. See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.
You do not need to assume the root role to remove your own at job.
# at -r [job-id]
where the –r job-id option specifies the identification number of the job you want to remove.
The at -l command displays the jobs remaining in the at queue. The job whose identification number you specified should not appear.
$ at -l [job-id]
In the following example, a user wants to remove an at job that was scheduled to execute at 4 a.m. on July 17th. First, the user displays the at queue to locate the job identification number. Next, the user removes this job from the at queue. Finally, the user verifies that this job has been removed from the queue.
$ at -l 897543600.a Sat Sep 7 23:45:00 2019 897355800.a Sun Sep 8 19:30:00 2019 897732000.a Tue Sep 10 04:00:00 2019 $ at -r 897732000.a $ at -l 897732000.a at: 897732000.a: No such file or directory