Skip to main content

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​

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.

SectionStable reference
Delete all scheduled jobs for a projectDOC-CP-scheduling-api-deleteJobsForProject#overview
RequestDOC-CP-scheduling-api-deleteJobsForProject#request
ResponsesDOC-CP-scheduling-api-deleteJobsForProject#responses