Habari\CronTab::delete_cronjob PHP Method

delete_cronjob() static public method

Delete a Cron Job by name or id from the Database.
static public delete_cronjob ( mixed $name ) : boolean
$name mixed The name or id of the cron job to delete.
return boolean Wheather or not the delete was successfull
    static function delete_cronjob($name)
    {
        $cron = self::get_cronjob($name);
        if ($cron) {
            return $cron->delete();
        }
        return false;
    }