Update alias.asciidoc (#118553)

Add section about removing index
This commit is contained in:
Adam Szaraniec 2024-12-17 20:09:22 +04:00 committed by GitHub
parent 6d943e9e53
commit f64c05ac32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -407,3 +407,24 @@ POST _aliases
}
----
// TEST[s/^/PUT my-index-2099.05.06-000001\n/]
[discrete]
[[remove-index]]
=== Remove an index
To remove an index, use the aliases API's `remove_index` action.
[source,console]
----
POST _aliases
{
"actions": [
{
"remove_index": {
"index": "my-index-2099.05.06-000001"
}
}
]
}
----
// TEST[s/^/PUT my-index-2099.05.06-000001\n/]