---
type: api
title: Delete a Logstash pipeline
description: Delete a pipeline that is used for Logstash Central Management.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/operation/operation-logstash-delete-pipeline
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/operation/operation-logstash-delete-pipeline
products:
  - Elasticsearch
---

# Delete a Logstash pipeline

Availability: 7.12+

## Paths

- `DELETE` `/_logstash/pipeline/{id}`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#basicauth)
- [Bearer auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#bearerauth)

#### Path Parameters

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

## Description

Delete a pipeline that is used for Logstash Central Management.
If the request succeeds, you receive an empty response with an appropriate status code.

## Required authorization

* Cluster privileges: `manage_logstash_pipelines`

[Read the reference documentation](https://www.elastic.co/guide/en/logstash/8.19/logstash-centralized-pipeline-management.html)

## Response

## Code Examples

#### Console

```console
DELETE _logstash/pipeline/my_pipeline
```

#### JavaScript

```javascript
const response = await client.logstash.deletePipeline({
  id: "my_pipeline",
});
```

#### Python

```python
resp = client.logstash.delete_pipeline(
    id="my_pipeline",
)
```

#### curl

```curl
curl -X DELETE "$ELASTICSEARCH_URL/_logstash/pipeline/my_pipeline" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.logstash().deletePipeline(d -> d
    .id("my_pipeline")
);
```

#### PHP

```php
$resp = $client->logstash()->deletePipeline([
    "id" => "my_pipeline",
]);
```

#### Ruby

```ruby
response = client.logstash.delete_pipeline(
  id: "my_pipeline"
)
```

