Delete all scheduled jobs for a project
POST/api/v1/scheduler/delete-jobs-for-project
Soft-deletes every scheduled job belonging to the tenant and project in the request context. Intended as a tenant lifecycle hook invoked during project teardown. The request body carries no fields — tenant and project are derived from ingress headers.
The following access conditions are preserved as declared intent and are not implemented by generated code: Authorized scoped domain action.
Use this in a guide: Manage jobs
Request
Responses
- 200
Scheduled jobs deleted
Delete all jobs in the authenticated project; this operation has no per-job selector.
Section ID: DOC-CP-scheduling-api-deleteJobsForProject#example-scheduled-jobs-deleteJobsForProject-request
Request example
{}
Illustrative response shape; omitted default fields and actual outcomes depend on the operation.
Section ID: DOC-CP-scheduling-api-deleteJobsForProject#example-scheduled-jobs-deleteJobsForProject-response
Response example
{
"deletedCount": 1
}
Illustrative response for Project teardown: remove schedules across all owners. Replace example resource identifiers with your own authorized values.
Section ID: DOC-CP-scheduling-api-deleteJobsForProject#example-cookbook-core-platform-scheduling-managing-json-02-response
Response example
{
"deletedCount": 47
}
Document ID: DOC-CP-scheduling-api-deleteJobsForProject. Section identities and revisions.
| Section | Stable reference |
|---|---|
| Delete all scheduled jobs for a project | DOC-CP-scheduling-api-deleteJobsForProject#overview |
| Request | DOC-CP-scheduling-api-deleteJobsForProject#request |
| Responses | DOC-CP-scheduling-api-deleteJobsForProject#responses |