Skip to content

Commit a22f57c

Browse files
jrodewigLiamMacP
andauthored
[DOCS] Fix <index> param def for delete index API (#74674) (#74839)
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]> # Conflicts: # docs/reference/indices/delete-index.asciidoc Co-authored-by: Liam MacPherson <[email protected]>
1 parent 6a76494 commit a22f57c

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 <<indices-aliases,alias>>.
38-
39-
To delete all indices, use `_all` or `*` . To disallow the deletion of indices
40-
with `_all` or wildcard expressions, change the
41-
`action.destructive_requires_name` cluster setting to `true`. You can update
42-
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+
<<indices-aliases,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)