Skip to content

Commit

Permalink
Update alias.asciidoc (#118553) (#118860)
Browse files Browse the repository at this point in the history
Add section about removing index

Co-authored-by: Adam Szaraniec <[email protected]>
  • Loading branch information
john-wagster and mimol91 authored Dec 17, 2024
1 parent 8dc8854 commit 49b18e2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/reference/alias.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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/]

0 comments on commit 49b18e2

Please sign in to comment.