---
type: api
title: Delete a links library item
description: **Spaces method and path for this operation:**
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana-serverless/operation/operation-delete-links-id
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/kibana-serverless/operation/operation-delete-links-id
products:
  - Kibana
---

# Delete a links library item

Availability:

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

## Paths

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

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/kibana-serverless/authentication#apikeyauth)

#### Path Parameters

- `id` (string · max: 250)
  The unique ID of the links library item, as returned by the create or search endpoints.

## Description

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

Permanently deletes a links library item by ID.

## Responses

#### `204`

No content, the links library item was successfully deleted.

#### `400`

invalid request

#### `403`

forbidden

#### `404`

A links library item with the given ID was not found.

## Code Examples

#### Console

```console
DELETE kbn:/api/links/0ee9d0ea-06a0-4a30-bf4e-be4d3ca85bf3
```

#### curl

```curl
curl -X DELETE "${KIBANA_URL}/api/links/0ee9d0ea-06a0-4a30-bf4e-be4d3ca85bf3" \
  -H "Authorization: ApiKey ${API_KEY}" \
  -H "kbn-xsrf: true"
```

