--- title: "Delete Cron" url: https://docs.catalyst.zoho.com/en/sdk/java/v1/job-scheduling/cron/delete-cron/ description: "This page describes the Java method to delete a cron in the project with sample code snippets." last_updated: 2026-09-08T11:07:33Z service: Job Scheduling type: general related_links: - name: "Component Help Documentation" url: /en/job-scheduling/help/cron/introduction/ - name: "JavaScript SDK Documentation" url: /en/sdk/javascript/v1/job-scheduling/cron/delete-cron/ - name: "Python SDK" url: /en/sdk/python/v1/job-scheduling/cron/delete-cron/ - name: "REST API Collection" url: /en/api/code-reference/job-scheduling/cron/delete-cron/#DeleteCron --- # Delete Cron This SDK method can be used to delete a particular [cron](https://docs.catalyst.zoho.com/en/job-scheduling/help/cron/introduction/). This can be done by passing the [`cron id`](https://docs.catalyst.zoho.com/en/job-scheduling/help/cron/key-concepts/#cron-id) or name to the `deleteCron()` SDK method. > **Note:** You can use this method to update details of both [Pre-Defined Crons](https://docs.catalyst.zoho.com/en/job-scheduling/help/implementation/submit-job-predefined-cron/) and [Dynamic Crons](https://docs.catalyst.zoho.com/en/job-scheduling/help/implementation/submit-job-dynamic-cron/). #### Sample Code Snippet **Package Imports** ```java import com.zc.component.jobscheduling.beans.cron.ZCCronDetails; ``` ```java ZCCronDetails deletedCronA = jobScheduling.cron.deleteCron(123456789l); // delete cron with cron Id ZCCronDetails deletedCronB = jobScheduling.cron.deleteCron("test_cron"); // delete cron with cron name ```