Forrest logo
back to the crontab tool

crontab:remove

Remove all cron jobs for the current user.
$ crontab -r
try on your machine

The command "crontab -r" is used to remove or delete the current user's cron job(s).

Cron is a time-based job scheduler in most Unix-like operating systems that allows users to schedule and automate repeated tasks or commands. Each user can have their own set of scheduled tasks defined in their cron table, which is commonly referred to as "crontab".

The "crontab -r" command is used to remove/delete the entire cron table for the current user. This means that all the scheduled tasks previously defined by the user will be removed and no longer executed. Once the command is executed, the user's crontab file will be empty.

This command is typically used when a user wants to remove all of their scheduled tasks or start fresh with a clean crontab. It is important to note that this action cannot be undone, so it is recommended to make a backup of the crontab file if any important tasks are defined before using this command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • How to delete all cronjobs?
back to the crontab tool