---
type: api
title: Delete monitors
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana-serverless/operation/operation-delete-synthetic-monitors
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana-serverless/operation/operation-delete-synthetic-monitors
products:
  - Kibana
---

# Delete monitors

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

## Paths

- `POST` `/api/synthetics/monitors/_bulk_delete`
- `POST` `/s/{space_id}/api/synthetics/monitors/_bulk_delete`

## Description

Refer to [Spaces](https://www.elastic.co/docs/deploy-manage/manage-spaces) for more information.

Delete multiple monitors by sending a list of config IDs.

## Required authorization

- Privileges: `uptime-read` and `uptime-write`

## 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
  A required header to protect against CSRF attacks

## Request body

`application/json`

- `ids` (string[] · min items: 1 · max items: 10000) — required
  An array of monitor IDs to delete.

## Response

A successful response.

`application/json`

Type: `object[]`

An array; each item has these fields:

- `deleted` (boolean)
  If `true`, the object was deleted. If `false`, it was not deleted.
- `id` (string)
  The unique identifier of the deleted object.
## Code examples

#### Console

```console
POST kbn://api/synthetics/monitors/_bulk_delete
{"ids":["monitor1-id","monitor2-id"]}
```

#### curl

```curl
curl \
  -X POST "${KIBANA_URL}/api/synthetics/monitors/_bulk_delete" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true" \
  -H "Content-Type: application/json" \
  -d '{"ids":["monitor1-id","monitor2-id"]}'
```

## Response examples

#### Delete monitors response example1

A response from successfully deleting multiple monitors.

```json
[
  {
    "deleted": true,
    "id": "monitor1-id"
  },
  {
    "deleted": true,
    "id": "monitor2-id"
  }
]
```

