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.

Sample Code Snippet


Package Imports
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-09-23 19:47:43 +0530 IST