Delete component templates
Generally available; Added in 7.8.0
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
highlight#highlightFromAnchor" href="#topic-required-authorization"> Required authorization
- Cluster privileges:
manage_index_templates
Path parameters
-
Comma-separated list or wildcard expression of component template names used to limit the request.
Query parameters
-
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
Values are
-1
or0
. -
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Values are
-1
or0
.
DELETE
/_component_template/{name}
dropdown#toggle click@window->dropdown#hide touchend@window->dropdown#hide"
data-dropdown-target="button"
data-scrollable="false"
data-headings="false"
aria-expanded="false"
aria-haspopup="true"
role="menu"
tabindex="0">
Console
DELETE _component_template/template_1
resp = client.cluster.delete_component_template(
name="template_1",
)
const response = await client.cluster.deleteComponentTemplate({
name: "template_1",
});
response = client.cluster.delete_component_template(
name: "template_1"
)
$resp = $client->cluster()->deleteComponentTemplate([
"name" => "template_1",
]);
curl -X DELETE -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_component_template/template_1"
client.cluster().deleteComponentTemplate(d -> d
.name("template_1")
);