[[indices-delete-component-template]]
=== Delete component template API
++++
Delete component template
++++
Deletes an existing component template.
////
[source,console]
--------------------------------------------------
PUT _component_template/template_1
{
"template": {
"settings": {
"index.number_of_replicas": 0
}
}
}
--------------------------------------------------
// TESTSETUP
////
[source,console]
--------------------------------------------------
DELETE _component_template/template_1
--------------------------------------------------
The provided may contain multiple template names separated by a comma.
If multiple template names are specified then there is no wildcard support and the
provided names should match completely with existing component templates.
[[delete-component-template-api-request]]
==== {api-request-title}
`DELETE /_component_template/`
[[delete-component-template-api-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-component-template-api-desc]]
==== {api-description-title}
Use the delete component template API to delete one or more component templates
Component templates are building blocks for constructing <>
that specify index mappings, settings, and aliases.
[[delete-component-template-api-path-params]]
==== {api-path-parms-title}
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=component-template]
[[delete-component-template-api-query-params]]
==== {api-query-parms-title}
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]