---
type: api
title: Retrieve the status of the bulk deletion
description: Retrieve the status of the bulk deletion operation for SLOs.  This endpoint returns the status of the bulk deletion operation, including whether it is completed and the results of the operation.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana-serverless/operation/operation-bulkdeletestatusop
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana-serverless/operation/operation-bulkdeletestatusop
products:
  - Kibana
---

# Retrieve the status of the bulk deletion

- Server: `https://{kibana_url}`

## Paths

- `GET` `/s/{spaceId}/api/observability/slos/_bulk_delete/{taskId}`

#### Path parameters

- `spaceId` (string) — required
  An identifier for the space. If `/s/` and the identifier are omitted from the path, the default space is used.
  Example: `default`
- `taskId` (string) — required
  The task id of the bulk delete operation
  Example: `8853df00-ae2e-11ed-90af-09bb6422b258`

## Description

Retrieve the status of the bulk deletion operation for SLOs.  This endpoint returns the status of the bulk deletion operation, including whether it is completed and the results of the operation.

## Authentication

- Api key: `Authorization: <value>`
  You must create an API key and use the encoded value in the request header. To learn about creating keys, go to [API keys](https://www.elastic.co/docs/current/serverless/api-keys).

## Header parameters

- `kbn-xsrf` (string) — required
  Cross-site request forgery protection

## Responses

#### `200`

Successful response

`application/json`

- `error` (string)
  The error message if the bulk deletion operation failed
- `isDone` (boolean)
  Indicates if the bulk deletion operation is completed
- `results` (object[])
  The results of the bulk deletion operation, including the success status and any errors for each SLO
  - `error` (string)
    The error message if the deletion operation failed for this SLO
  - `id` (string)
    The ID of the SLO that was deleted
  - `success` (boolean)
    The result of the deletion operation for this SLO
#### `400`

Bad request

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (number)
#### `401`

Unauthorized response

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (number)
#### `403`

Forbidden response

`application/json`

- `error` (string)
- `message` (string)
- `statusCode` (number)
## Code examples

#### Console

```console
GET kbn:/s/default/api/observability/slos/_bulk_delete/8853df00-ae2e-11ed-90af-09bb6422b258
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/s/default/api/observability/slos/_bulk_delete/8853df00-ae2e-11ed-90af-09bb6422b258" \
  -H "kbn-xsrf: true" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Completed bulk deletion

```json
{
  "isDone": true,
  "results": [
    {
      "id": "8853df00-ae2e-11ed-90af-09bb6422b258",
      "success": true
    },
    {
      "id": "d077e940-1515-11ee-9c50-9d096392f520",
      "success": true
    }
  ]
}
```

#### Completed with partial failure

```json
{
  "isDone": true,
  "results": [
    {
      "id": "8853df00-ae2e-11ed-90af-09bb6422b258",
      "success": true
    },
    {
      "error": "SLO [d077e940-1515-11ee-9c50-9d096392f520] not found",
      "id": "d077e940-1515-11ee-9c50-9d096392f520",
      "success": false
    }
  ]
}
```

#### Bad request

```json
{
  "error": "Bad Request",
  "message": "Invalid value \u0027foo\u0027 supplied to: taskId",
  "statusCode": 400
}
```

#### Unauthorized

```json
{
  "error": "Unauthorized",
  "message": "security_exception: unable to authenticate user for REST request [/api/observability/slos]",
  "statusCode": 401
}
```

#### Forbidden

```json
{
  "error": "Forbidden",
  "message": "security_exception: action [slo_write] is unauthorized for user",
  "statusCode": 403
}
```

