---
type: api
title: Retrieve the status of the bulk deletion
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/operation/operation-bulkdeletestatusop
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/kibana/operation/operation-bulkdeletestatusop
products:
  - Kibana
---

# Retrieve the status of the bulk deletion

Authentication: required

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

## Paths

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

#### Path parameters

- `space_id` (string) — optional
  An identifier for the space. If `space_id` is not provided in the URL, the default space is used. Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.
- `taskId` (string) — required
  The task id of the bulk delete operation

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

## Required authorization

- Privileges: `slo_write`

## Request body

`application/json`

Any of:
- **object**
- **object**

## 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:/api/observability/slos/_bulk_delete/TASK_ID
{}
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/observability/slos/_bulk_delete/${TASK_ID}" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Response examples

#### Completed bulk deletion

`application/json`

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

#### Completed with partial failure

`application/json`

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

`application/json`

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

#### Unauthorized

`application/json`

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

#### Forbidden

`application/json`

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

