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

# Delete a monitored user

deprecated

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

## Paths

- `DELETE` `/api/entity_analytics/monitoring/users/{id}`
- `DELETE` `/s/{space_id}/api/entity_analytics/monitoring/users/{id}`

#### Path parameters

- `id` (string) — required
  The document ID of the monitored user to delete

## Description

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

**Deprecated in 9.4.0.** Use the Watchlists API instead.

Removes a privileged user from monitoring by their document ID.

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

## Response

User deleted successfully

`application/json`

- `acknowledged` (boolean)
  Indicates if the deletion was successful
- `message` (string)
  A message providing additional information about the deletion status
## Code examples

#### Console

```console
DELETE kbn:/api/entity_analytics/monitoring/users/ID
```

#### curl

```curl
curl -X DELETE "${KIBANA_URL}/api/entity_analytics/monitoring/users/${ID}" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### User deleted successfully

```json
{
  "acknowledged": true,
  "message": "User deleted successfully"
}
```

