[[index-management-settings]]
=== Index management settings

You can use the following cluster settings to enable or disable index management
features.

[[auto-create-index]]
// tag::auto-create-index-tag[]
`action.auto_create_index` {ess-icon}::
(<<dynamic-cluster-setting,Dynamic>>)
<<index-creation,Automatically create an index>> if it doesn't already exist and apply any configured index templates. Defaults to `true`.
// end::auto-create-index-tag[]

[[action-destructive-requires-name]]
// tag::action-destructive-requires-name-tag[]
`action.destructive_requires_name` {ess-icon}::
(<<dynamic-cluster-setting,Dynamic>>)
When set to `true`, you must specify the index name to <<indices-delete-index,delete an index>>. It is not possible to delete all indices with `_all` or use wildcards.
// end::action-destructive-requires-name-tag[]

[[cluster-indices-close-enable]]
// tag::cluster-indices-close-enable-tag[]
`cluster.indices.close.enable` {ess-icon}::
(<<dynamic-cluster-setting,Dynamic>>)
Enables <<indices-close,closing of open indices>> in {es}. If `false`, you
cannot close open indices. Defaults to `true`.
+
NOTE: Closed indices still consume a significant amount of disk space.

[[reindex-remote-whitelist]]
// tag::reindex-remote-whitelist[]
`reindex.remote.whitelist` {ess-icon}::
(<<static-cluster-setting,Static>>)
Specifies the hosts that can be <<reindex-from-remote,reindexed from remotely>>. Expects a YAML array of `host:port` strings. Consists of a comma-delimited list of `host:port` entries. Defaults to `["\*.io:*", "\*.com:*"]`.
// end::reindex-remote-whitelist[]

[[stack-templates-enabled]]
`stack.templates.enabled`::
+
--
(<<dynamic-cluster-setting,Dynamic>>)
If `true`, enables built-in index and component templates.
{fleet-guide}/fleet-overview.html[{agent}] uses these templates to create data
streams. If `false`, {es} disables these index and component templates. Defaults
to `true`.

This setting affects the following built-in index templates:

include::{es-repo-dir}/indices/index-templates.asciidoc[tag=built-in-index-template-patterns]

This setting also affects the following built-in component templates:

include::{es-repo-dir}/indices/put-component-template.asciidoc[tag=built-in-component-templates]
--
