Skip to content

Commit 6d8501b

Browse files
mimol91john-wagster
authored andcommitted
Update alias.asciidoc (#118553)
Add section about removing index
1 parent ca58882 commit 6d8501b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/reference/alias.asciidoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,3 +407,24 @@ POST _aliases
407407
}
408408
----
409409
// TEST[s/^/PUT my-index-2099.05.06-000001\n/]
410+
411+
[discrete]
412+
[[remove-index]]
413+
=== Remove an index
414+
415+
To remove an index, use the aliases API's `remove_index` action.
416+
417+
[source,console]
418+
----
419+
POST _aliases
420+
{
421+
"actions": [
422+
{
423+
"remove_index": {
424+
"index": "my-index-2099.05.06-000001"
425+
}
426+
}
427+
]
428+
}
429+
----
430+
// TEST[s/^/PUT my-index-2099.05.06-000001\n/]

0 commit comments

Comments
 (0)