Skip to content

Commit ba227f9

Browse files
LiamMacPjrodewig
andauthored
[DOCS] Fix <index> param def for delete index API (#74674)
Clarifies that you cannot specify an alias in the delete index API. You _can_ delete indices with an alias. Co-authored-by: James Rodewig <[email protected]>
1 parent 2dd2945 commit ba227f9

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

docs/reference/indices/delete-index.asciidoc

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,14 @@ or `manage` <<privileges-list-indices,index privilege>> for the target index.
3030
`<index>`::
3131
+
3232
--
33-
(Request, string) Comma-separated list or wildcard expression of indices to
34-
delete.
35-
36-
In this parameter, wildcard expressions match only open, concrete indices. You
37-
cannot delete an index using an <<alias,alias>>.
38-
39-
By default, you must explicitly name the indices you are deleting.
40-
To specify indices to delete with `_all`, `*`, or other wildcard
41-
expressions, change the `action.destructive_requires_name` setting to `false`.
42-
You can update this setting in the `elasticsearch.yml` file or using the
43-
<<cluster-update-settings,cluster update settings>> API.
33+
(Required, string) Comma-separated list of indices to delete. You cannot specify
34+
<<alias,index aliases>>.
35+
36+
By default, this parameter does not support wildcards (`*`) or `_all`. To use
37+
wildcards or `_all`, change the `action.destructive_requires_name` setting to
38+
`false`. You can update this setting in the `elasticsearch.yml` file or using
39+
the <<cluster-update-settings,cluster update settings>> API. Wildcard patterns
40+
only match open, concrete indices.
4441

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

0 commit comments

Comments
 (0)