Delete Logstash pipeline API

Delete Logstash pipeline API

New API reference

For the most up-to-date API details, refer to Logstash APIs.

This API deletes a pipeline used for Logstash Central Management.

Request

DELETE _logstash/pipeline/<pipeline_id>

Prerequisites

  • If the Elasticsearch security features are enabled, you must have the manage_logstash_pipelines cluster privilege to use this API.

Description

Deletes a Logstash pipeline.

Path parameters

<pipeline_id>

(Required, string) Identifier for the Pipeline.

Examples

The following example deletes the Pipeline named my_pipeline:

  1. resp = client.logstash.delete_pipeline(
  2. id="my_pipeline",
  3. )
  4. print(resp)
  1. response = client.logstash.delete_pipeline(
  2. id: 'my_pipeline'
  3. )
  4. puts response
  1. const response = await client.logstash.deletePipeline({
  2. id: "my_pipeline",
  3. });
  4. console.log(response);
  1. DELETE _logstash/pipeline/my_pipeline

If the request succeeds, you receive an empty response with an appropriate status code.