---
title: "Batch delete rollup and summary data"
method: POST
path: "/s/{spaceId}/api/observability/slos/_bulk_purge_rollup"
tags: ["slo"]
---

# Batch delete rollup and summary data

`POST /s/{spaceId}/api/observability/slos/_bulk_purge_rollup`

The deletion occurs for the specified list of `sloId`. You must have `all` privileges for the **SLOs** feature in the **Observability** section of the Kibana feature privileges.

## Path parameters

- `spaceId` string, required

## Headers

- `kbn-xsrf` string, required

## Request body

- SLOsBulkPurgeRollupRequest — The bulk purge rollup data request takes a list of SLO ids and a purge policy, then deletes the rollup data according to the purge policy. This API can be used to remove the staled data of an instance SLO that no longer get updated.
  - `list` string[], required — An array of slo ids
  - `purgePolicy` union, required — Policy that dictates which SLI documents to purge based on age
    - object
      - `age` string — The duration to determine which documents to purge, formatted as {duration}{unit}. This value should be greater than or equal to the time window of every SLO provided.
      - `purgeType` 'fixed-age' — Specifies whether documents will be purged based on a specific age or on a timestamp
    - object
      - `purgeType` 'fixed-time' — Specifies whether documents will be purged based on a specific age or on a timestamp
      - `timestamp` string — The timestamp to determine which documents to purge, formatted in ISO. This value should be older than the applicable time window of every SLO provided.

## Response `200`

Successful request

- SLOsBulkPurgeRollupResponse — The bulk purge rollup data response returns a task id from the elasticsearch deleteByQuery response.
  - `taskId` string — The task id of the purge operation

## Other responses

- `400` — Bad request
- `401` — Unauthorized response
- `403` — Forbidden response

---

[API](https://skmtc.net/elastic/apis/kibana-apis.md) · [All operations](https://skmtc.net/elastic/apis/kibana-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elastic/kibana-apis/versions/531c9e2a7d23/schema)
