123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- [[indices-delete-template]]
- === Delete index template API
- ++++
- <titleabbrev>Delete template index</titleabbrev>
- ++++
- Deletes an existing index.
- ////
- [source,js]
- --------------------------------------------------
- PUT _template/template_1
- {
- "index_patterns" : ["te*"],
- "settings": {
- "number_of_shards": 1
- }
- }
- --------------------------------------------------
- // CONSOLE
- // TESTSETUP
- ////
- [source,js]
- --------------------------------------------------
- DELETE /_template/template_1
- --------------------------------------------------
- // CONSOLE
- [[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]
|