12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- [[indices-delete-template]]
- === Delete index template API
- ++++
- <titleabbrev>Delete index template</titleabbrev>
- ++++
- Deletes an existing index.
- ////
- [source,console]
- --------------------------------------------------
- PUT _template/template_1
- {
- "index_patterns" : ["te*"],
- "settings": {
- "number_of_shards": 1
- }
- }
- --------------------------------------------------
- // TESTSETUP
- ////
- [source,console]
- --------------------------------------------------
- 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}
- include::{docdir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
|