Skip to content

Commit

Permalink
[DOCS] Fix wildcard default for delete index in 7.x branches (#76922) (
Browse files Browse the repository at this point in the history
…#76926)

In 7.x versions, the `action.destructive_requires_name` cluster setting defaults to `false`. 
The 7.x backports of #74674 introduced a docs bug that indicate the setting defaults to `true`.
This reverts the related changes.
  • Loading branch information
jrodewig authored Aug 25, 2021
1 parent 8ad404a commit 30cc319
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/reference/indices/delete-index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ or `manage` <<privileges-list-indices,index privilege>> for the target index.
(Required, string) Comma-separated list of indices to delete. You cannot specify
<<alias,index aliases>>.

By default, this parameter does not support wildcards (`*`) or `_all`. To use
wildcards or `_all`, change the `action.destructive_requires_name` setting to
`false`. You can update this setting in the `elasticsearch.yml` file or using
the <<cluster-update-settings,cluster update settings>> API. Wildcard patterns
only match open, concrete indices.
To delete all indices, use `_all` or `*` . To disallow the deletion of indices
with `_all` or wildcard expressions, change the
`action.destructive_requires_name` cluster setting to `true`. You can update
this setting in the `elasticsearch.yml` file or using the
<<cluster-update-settings,cluster update settings>> API.

NOTE: You cannot delete the current write index of a data stream. To delete the
index, you must <<data-streams-rollover,roll over>> the data stream so a new
Expand Down

0 comments on commit 30cc319

Please sign in to comment.