[[indices-delete-template-v1]]
=== Delete index template API
++++
Delete index template (legacy)
++++
IMPORTANT: This documentation is about <>, which are deprecated and will be replaced by the composable
templates introduced in {es} 7.8. For information about composable templates,
see <>.
Deletes a legacy index template.
////
[source,console]
--------------------------------------------------
PUT _template/my-legacy-index-template
{
"index_patterns" : ["te*"],
"settings": {
"number_of_shards": 1
}
}
--------------------------------------------------
// TESTSETUP
////
[source,console]
--------------------------------------------------
DELETE /_template/my-legacy-index-template
--------------------------------------------------
[[delete-template-api-v1-request]]
==== {api-request-title}
`DELETE /_template/`
[[delete-template-api-v1-prereqs]]
==== {api-prereq-title}
* If the {es} {security-features} are enabled, you must have the
`manage_index_templates` or `manage` <> to use this API.
[[delete-template-api-v1-path-params]]
==== {api-path-parms-title}
``::
(Required, string)
The name of the legacy index template to delete. Wildcard (`*`)
expressions are supported.
[[delete-template-api-v1-query-params]]
==== {api-query-parms-title}
include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=master-timeout]