this-> DeleteCronJob

(Caronte Pcode version 2.0)

Description

int this->DeleteCronJob(string job, optional string signature default null);

Remove the job from the cron tab of Caronte Antispam . The job string must be in a valid format. The job can be removed by job or signature value.

The function return 1 if success, 0 if not.

Example.

Source:

CS_ADMIN_SCRIPT this = new CS_ADMIN_SCRIPT($_this);

int Main(CAdminRequest pRequest, CAdminResponse pResponse)
{

this->DeleteCronJob("30 12 * * * script.cs");

return 0;

}