2018-12-23 08:59:18 -05:00
|
|
|
[[delete-pipeline-api]]
|
|
|
|
=== Delete Pipeline API
|
|
|
|
|
|
|
|
The delete pipeline API deletes pipelines by ID or wildcard match (`my-*`, `*`).
|
|
|
|
|
|
|
|
//////////////////////////
|
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2018-12-23 08:59:18 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
PUT _ingest/pipeline/my-pipeline-id
|
|
|
|
{
|
|
|
|
"description" : "describe pipeline",
|
|
|
|
"version" : 123,
|
|
|
|
"processors" : [
|
|
|
|
{
|
|
|
|
"set" : {
|
|
|
|
"field": "foo",
|
|
|
|
"value": "bar"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
//////////////////////////
|
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2018-12-23 08:59:18 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
DELETE _ingest/pipeline/my-pipeline-id
|
|
|
|
--------------------------------------------------
|
|
|
|
// TEST[continued]
|
|
|
|
|
|
|
|
//////////////////////////
|
|
|
|
|
2019-09-06 09:22:08 -04:00
|
|
|
[source,console-result]
|
2018-12-23 08:59:18 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
{
|
|
|
|
"acknowledged": true
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2018-12-23 08:59:18 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
PUT _ingest/pipeline/wild-one
|
|
|
|
{
|
|
|
|
"description" : "first pipeline to be wildcard deleted",
|
|
|
|
"processors" : [ ]
|
|
|
|
}
|
|
|
|
|
|
|
|
PUT _ingest/pipeline/wild-two
|
|
|
|
{
|
|
|
|
"description" : "second pipeline to be wildcard deleted",
|
|
|
|
"processors" : [ ]
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
//////////////////////////
|
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2018-12-23 08:59:18 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
DELETE _ingest/pipeline/*
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
//////////////////////////
|
|
|
|
|
2019-09-06 09:22:08 -04:00
|
|
|
[source,console-result]
|
2018-12-23 08:59:18 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
{
|
|
|
|
"acknowledged": true
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
//////////////////////////
|