---
type: api
title: Delete a Logstash pipeline
description: Delete a centrally-managed Logstash pipeline.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-delete-logstash-pipeline
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-delete-logstash-pipeline
products:
  - Kibana
---

# Delete a Logstash pipeline

Availability: Preview

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

## Paths

- `DELETE` `/api/logstash/pipeline/{id}`

#### Path parameters

- `id` (string) — required
  An identifier for the pipeline.

## Description

Delete a centrally-managed Logstash pipeline.
If your Elasticsearch cluster is protected with basic authentication, you must have either the `logstash_admin` built-in role or a customized Logstash writer role.

[Secure your connection](https://www.elastic.co/docs/reference/logstash/secure-connection)

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

Indicates a successful call

## Code examples

#### Console

```console
DELETE kbn:/api/logstash/pipeline/ID
```

#### curl

```curl
curl -X DELETE "${KIBANA_URL}/api/logstash/pipeline/${ID}" \
  -H "Authorization: ApiKey ${API_KEY}"
```

