Delete Cron

This SDK method can be used to delete a particular cron. This can be done by passing the cron id or name to the deleteCron() SDK method.

Note: You can use this method to update details of both Pre-Defined Crons and Dynamic Crons.

Ensure the following packages have been imported:

    
copy
import com.zc.component.jobscheduling.beans.cron.ZCCronDetails;
    
copy
ZCCronDetails deletedCronA = jobScheduling.cron.deleteCron(123456789l); // delete cron with cron Id ZCCronDetails deletedCronB = jobScheduling.cron.deleteCron("test_cron"); // delete cron with cron name

Last Updated 2025-06-20 16:21:48 +0530 +0530