1. Knowledge Base
  2. >
  3. How Do I Create and Delete a Cron Job?

How Do I Create and Delete a Cron Job?


Cron jobs run scheduled commands at specific times. The Cron Jobs tool in cPanel is helps set up automated maintenance and other unmanned server duties.

Warning: You need to have a good knowledge of Linux commands before using cron jobs effectively. Check your script with your hosting administrator before adding a cron job.

For more detailed information on how cron works, please see:

The images in the video use the old cPanel interface. The steps will be the same; however, the buttons and location may differ.


How to Create a Cron Job

  1. Log in to cPanel.
  2. In the Advanced section, click Cron Job.cPanel Cron Job icon
  3. Under Cron Email, make sure the current email address is valid. If not, enter a new, valid email and click Update Email. You will receive an email after the cron job has finished.

    Cronjob email

  4. Under Add New Cron Job, use the Common Settings dropdown menu to choose from a list of regularly used intervals; or set the frequency of your cron job by using the dropdown box next to each time unit. Common settings range from every minute to once a year.

    Cron Job Common Settings

  5. In the Command field, enter the desired command.

    Command Field

  6. Click Add New Cron Job.

    add cronjob button

Your cron job will then execute a file at a specific time, date, and repetition, according to the settings you selected.

How to Remove or Edit a Cron Job

  1. In the Advanced section of cPanel, click the Cron Jobs icon.

    cPanel Cron Job icon

  2. Scroll down to the last section called Current Cron Jobs.

    Edit or Delete Cron

    • Find the cron job you wish to edit or delete.
    • Under Actions, for the appropriate cron job, click either Edit or Delete.
      Note: The edit panel has fewer common settings to choose from, so if you are having trouble getting the correct interval, copy the command, delete the cron job, and then recreate it using the Add New Cron Job section.