delete-index-template.asciidoc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [[indices-delete-template]]
  2. === Delete index template API
  3. ++++
  4. <titleabbrev>Delete index template</titleabbrev>
  5. ++++
  6. Deletes an existing index.
  7. ////
  8. [source,console]
  9. --------------------------------------------------
  10. PUT _template/template_1
  11. {
  12. "index_patterns" : ["te*"],
  13. "settings": {
  14. "number_of_shards": 1
  15. }
  16. }
  17. --------------------------------------------------
  18. // TESTSETUP
  19. ////
  20. [source,console]
  21. --------------------------------------------------
  22. DELETE /_template/template_1
  23. --------------------------------------------------
  24. [[delete-template-api-request]]
  25. ==== {api-request-title}
  26. `DELETE /_template/<index-template>`
  27. [[delete-template-api-desc]]
  28. ==== {api-description-title}
  29. Use the delete index template API to delete one or more index templates
  30. include::templates.asciidoc[tag=index-template-def]
  31. [[delete-template-api-path-params]]
  32. ==== {api-path-parms-title}
  33. include::{docdir}/rest-api/common-parms.asciidoc[tag=index-template]
  34. [[delete-template-api-query-params]]
  35. ==== {api-query-parms-title}
  36. include::{docdir}/rest-api/common-parms.asciidoc[tag=timeoutparms]