/**
* Delete tasks by ids.
*
* @param mixed $ids could either be an array of ids or a single id
* @return $this
*/
public function delete($ids)
{
if (is_array($ids)) {
$this->deleteByIds($ids);
} else {
$job = $this->find($ids);
if ($job instanceof Job) {
$this->crontab->removeJob($job);
}
}
return $this;
}