---
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/4641/api/doc/kibana/v8/operation/operation-bulkdeletestatusop
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/v8/operation/operation-bulkdeletestatusop
products:
  - Kibana
---

# Retrieve the status of the bulk deletion

Authentication: required

- 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.

## 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`

Unauthorized 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

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "Task not found",
  "isDone": true,
  "results": [
    {
      "error": "SLO [d08506b7-f0e8-4f8b-a06a-a83940f4db91] not found",
      "id": "d08506b7-f0e8-4f8b-a06a-a83940f4db91",
      "success": true
    }
  ]
}
```

#### 400

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

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

#### 401

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "Unauthorized",
  "message": "[security_exception\n\tRoot causes:\n\t\tsecurity_exception: unable to authenticate user [elastics] for REST request [/_security/_authenticate]]: unable to authenticate user [elastics] for REST request [/_security/_authenticate]",
  "statusCode": 401
}
```

#### 403

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "error": "Unauthorized",
  "message": "[security_exception\n\tRoot causes:\n\t\tsecurity_exception: unable to authenticate user [elastics] for REST request [/_security/_authenticate]]: unable to authenticate user [elastics] for REST request [/_security/_authenticate]",
  "statusCode": 403
}
```

