Skip to content

Commit fd8e1fe

Browse files
author
Robbert Hink
authored
added warning for required privileges
Adjusted the document to ensure alignment and correctness after following changes were made: #81400 and adjusted for proposed solution mentioned here: #81451 (comment)
1 parent 8ba521f commit fd8e1fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/reference/features/apis/reset-features-api.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ POST /_features/_reset
2626

2727
Return a cluster to the same state as a new installation by resetting the feature state for all {es} features. This deletes all state information stored in system indices.
2828

29+
IMPORTANT: This action deletes system indices and [starting from 8.1](https://github.com/elastic/elasticsearch/pull/81400) system index write-access has been removed from the superuser role. So, if you are performing this action from a user with the superuser role, you need to ensure that the user has another role with the `allow_restricted_indices` set to `true` to be able to delete all system indices.
30+
2931
The response code is `HTTP 200` if state is successfully reset for all features, `HTTP 207` if there is a mixture of successes and failures, and `HTTP 500` if the reset operation fails for all features.
3032

3133
Note that select features might provide a way to reset particular system indices. Using this API resets _all_ features, both those that are built-in and implemented as plugins.

0 commit comments

Comments
 (0)