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

# Delete a monitor

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

## Paths

- `DELETE` `/api/synthetics/monitors/{id}`
- `DELETE` `/s/{space_id}/api/synthetics/monitors/{id}`

#### Path parameters

- `id` (string · min length: 1 · max length: 1024) — required
  The identifier for the monitor that you want to delete.

## Description

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

Delete a monitor from the Synthetics app.

You must have `all` privileges for the Synthetics feature in the Observability section of the Kibana feature privileges.

## Required authorization

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

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Header parameters

- `kbn-xsrf` (string) — required
  A required header to protect against CSRF attacks

## Responses

#### `200`

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

The monitor does not exist.

## Code examples

#### Console

```console
DELETE kbn://api/synthetics/monitors/monitor-id
```

#### curl

```curl
curl \
  -X DELETE "${KIBANA_URL}/api/synthetics/monitors/monitor-id" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true"
```

## Response examples

#### Delete monitor response example1

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

