DELETE
/analytics/{datasetSlug}/schedules/{scheduleId}Delete Schedule
Deletes the schedule.
Returns {id, deleted: true}.
Requires the datasets:write permission (PROJECT_ADMIN or PROJECT_AUTHOR by default).
Callers must be members of the project (an organization role alone does not grant access); project service tokens and extension tokens cannot call it.
Parameters
| datasetSlug * | path | The Dataset's slug. |
| scheduleId * | path | The id of the schedule to delete ( It must belong to the dataset in the path. |
| projectSlug * | path | The project's slug: the path segment after It is unique within the org. |
Responses
| HTTP | K9O Code | Description |
|---|---|---|
| 200 | Success | |
| 401 | K9O_UNAUTHENTICATED | The caller is not signed in. |
| 403 | K9O_ACCESS_DENIED | The caller is not a member of this project; an organization role alone does not grant access. |
| 403 | K9O_IAM_POLICY_DENIED | The caller's role or IAM policy does not grant datasets:write. |
| 404 | K9O_NOT_FOUND | The project was not found for this caller (project service tokens and extension tokens cannot call this endpoint). |
Response body (200)
| data * | object | The deleted schedule. |
| id * | string | The deleted schedule's id, as given in the path. |
| deleted * | true | Always true. No further runs happen; rows already written to the dataset stay there. |
| meta * | any |
TypeScript
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.analytics.schedules.delete('<datasetSlug>', '<scheduleId>')Showing example in TypeScript
Response example (200)
{
"data": {
"id": "string",
"deleted": true
}
}