2019-08-29 14:37:47 -04:00
|
|
|
[[indices-delete-template]]
|
|
|
|
=== Delete index template API
|
|
|
|
++++
|
2019-10-01 17:07:28 -04:00
|
|
|
<titleabbrev>Delete index template</titleabbrev>
|
2019-08-29 14:37:47 -04:00
|
|
|
++++
|
|
|
|
|
|
|
|
Deletes an existing index.
|
|
|
|
|
|
|
|
////
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2019-08-29 14:37:47 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
PUT _template/template_1
|
|
|
|
{
|
|
|
|
"index_patterns" : ["te*"],
|
|
|
|
"settings": {
|
|
|
|
"number_of_shards": 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|
|
|
|
// TESTSETUP
|
|
|
|
////
|
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2019-08-29 14:37:47 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
DELETE /_template/template_1
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
[[delete-template-api-request]]
|
|
|
|
==== {api-request-title}
|
|
|
|
|
|
|
|
`DELETE /_template/<index-template>`
|
|
|
|
|
|
|
|
|
|
|
|
[[delete-template-api-desc]]
|
|
|
|
==== {api-description-title}
|
|
|
|
|
|
|
|
Use the delete index template API to delete one or more index templates
|
|
|
|
|
|
|
|
include::templates.asciidoc[tag=index-template-def]
|
|
|
|
|
|
|
|
|
|
|
|
[[delete-template-api-path-params]]
|
|
|
|
==== {api-path-parms-title}
|
|
|
|
|
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=index-template]
|
|
|
|
|
|
|
|
|
|
|
|
[[delete-template-api-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
2020-04-28 18:10:50 -04:00
|
|
|
include::{docdir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
|