2018-12-23 08:59:18 -05:00
|
|
|
[[delete-pipeline-api]]
|
2019-09-30 11:38:46 -04:00
|
|
|
=== Delete pipeline API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Delete pipeline</titleabbrev>
|
|
|
|
++++
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-30 11:38:46 -04:00
|
|
|
Deletes one or more existing ingest pipeline.
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-30 11:38:46 -04:00
|
|
|
////
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2019-09-30 11:38:46 -04:00
|
|
|
----
|
|
|
|
PUT /_ingest/pipeline/my-pipeline-id
|
2018-12-23 08:59:18 -05:00
|
|
|
{
|
2019-09-30 11:38:46 -04:00
|
|
|
"description" : "example pipeline to delete",
|
|
|
|
"processors" : [ ]
|
2018-12-23 08:59:18 -05:00
|
|
|
}
|
|
|
|
|
2019-09-30 11:38:46 -04:00
|
|
|
PUT /_ingest/pipeline/pipeline-one
|
|
|
|
{
|
|
|
|
"description" : "another example pipeline to delete",
|
|
|
|
"processors" : [ ]
|
|
|
|
}
|
|
|
|
----
|
|
|
|
// TESTSETUP
|
|
|
|
////
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2019-09-30 11:38:46 -04:00
|
|
|
----
|
|
|
|
DELETE /_ingest/pipeline/my-pipeline-id
|
|
|
|
----
|
2018-12-23 08:59:18 -05:00
|
|
|
|
|
|
|
|
2019-09-30 11:38:46 -04:00
|
|
|
[[delete-pipeline-api-request]]
|
|
|
|
==== {api-request-title}
|
|
|
|
|
|
|
|
`DELETE /_ingest/pipeline/<pipeline>`
|
|
|
|
|
|
|
|
|
|
|
|
[[delete-pipeline-api-path-params]]
|
|
|
|
==== {api-path-parms-title}
|
|
|
|
|
|
|
|
`<pipeline>`::
|
|
|
|
+
|
|
|
|
--
|
|
|
|
(Required, string) Pipeline ID or wildcard expression of pipeline IDs
|
|
|
|
used to limit the request.
|
|
|
|
|
|
|
|
To delete all ingest pipelines in a cluster,
|
|
|
|
use a value of `*`.
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
|
|
[[delete-pipeline-api-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
|
2019-09-30 11:38:46 -04:00
|
|
|
|
|
|
|
|
|
|
|
[[delete-pipeline-api-api-example]]
|
|
|
|
==== {api-examples-title}
|
|
|
|
|
|
|
|
|
|
|
|
[[delete-pipeline-api-specific-ex]]
|
|
|
|
===== Delete a specific ingest pipeline
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2019-09-30 11:38:46 -04:00
|
|
|
----
|
|
|
|
DELETE /_ingest/pipeline/pipeline-one
|
|
|
|
----
|
2018-12-23 08:59:18 -05:00
|
|
|
|
|
|
|
|
2019-09-30 11:38:46 -04:00
|
|
|
[[delete-pipeline-api-wildcard-ex]]
|
|
|
|
===== Delete ingest pipelines using a wildcard expression
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2019-09-30 11:38:46 -04:00
|
|
|
----
|
|
|
|
DELETE /_ingest/pipeline/pipeline-*
|
|
|
|
----
|
|
|
|
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-30 11:38:46 -04:00
|
|
|
[[delete-pipeline-api-all-ex]]
|
|
|
|
===== Delete all ingest pipelines
|
2018-12-23 08:59:18 -05:00
|
|
|
|
2019-09-30 11:38:46 -04:00
|
|
|
[source,console]
|
|
|
|
----
|
|
|
|
DELETE /_ingest/pipeline/*
|
|
|
|
----
|
|
|
|
|
|
|
|
////
|
2019-09-06 09:22:08 -04:00
|
|
|
[source,console-result]
|
2019-09-30 11:38:46 -04:00
|
|
|
----
|
2018-12-23 08:59:18 -05:00
|
|
|
{
|
|
|
|
"acknowledged": true
|
|
|
|
}
|
2019-09-30 11:38:46 -04:00
|
|
|
----
|
|
|
|
////
|