---
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/4641/api/doc/elasticsearch/v8/operation/operation-logstash-delete-pipeline
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/elasticsearch/v8/operation/operation-logstash-delete-pipeline
products:
  - Elasticsearch
---

# Delete a Logstash pipeline

Authentication: required

Availability: Generally available since 7.12

## Paths

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

#### Path parameters

- `id` (string) — required
  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.

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

## Required authorization

- Cluster privileges: `manage_logstash_pipelines`

## Response

`application/json`

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

## Response examples

#### 200

`application/json`

