---
type: api
title: Delete a tag
description: Permanently deletes a tag by ID.
url: https://www.elastic.co/docs/api/doc/kibana/operation/operation-delete-tags-id
resource: https://www.elastic.co/docs/api/doc/kibana/operation/operation-delete-tags-id
products:
  - Kibana
---

# Delete a tag

Authentication: required

Availability: Experimental since 9.5

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

## Paths

- `DELETE` `/api/tags/{id}`
- `DELETE` `/s/{space_id}/api/tags/{id}`

#### 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.
- `id` (string · min length: 1 · max length: 256) — required
  The tag ID, as returned by the create or search endpoints.

## Description

Permanently deletes a tag by ID.

## Header parameters

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

## Responses

#### `204`

deleted

#### `403`

forbidden

#### `404`

not found

## Code examples

#### Console

```console
DELETE kbn:/api/tags/ID
```

#### curl

```curl
curl -X DELETE "${KIBANA_URL}/api/tags/${ID}" \
  -H "kbn-xsrf: true" \
  -H "Authorization: ApiKey ${API_KEY}"
```

