Skip to main content
DELETE/analytics/{datasetSlug}/rollups/{rollupId}

Delete Rollup

Deletes the rollup.

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.

rollupId *path

The id of the rollup to delete (rollup_...), as create and list return it.

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
HTTPK9O CodeDescription
200Success
401K9O_UNAUTHENTICATEDThe caller is not signed in.
403K9O_ACCESS_DENIEDThe caller is not a member of this project; an organization role alone does not grant access.
403K9O_IAM_POLICY_DENIEDThe caller's role or IAM policy does not grant datasets:write.
404K9O_NOT_FOUNDThe project was not found for this caller (project service tokens and extension tokens cannot call this endpoint).
Response body (200)
data *object

The deleted rollup.

id *string

The deleted rollup's id, as given in the path.

deleted *true

Always true.

The rollup stops folding; cells already written to its dataset stay there.

meta *any
TypeScript
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.analytics.rollups.delete('<datasetSlug>', '<rollupId>')

Showing example in TypeScript

Response example (200)
{
  "data": {
    "id": "string",
    "deleted": true
  }
}

More in Analytics & Intelligence