Skip to content

Commit 03897a9

Browse files
Update alias.asciidoc (#118553) (#118861)
Add section about removing index Co-authored-by: Adam Szaraniec <[email protected]>
1 parent a8c97e9 commit 03897a9

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
@@ -332,3 +332,24 @@ POST _aliases
332332
}
333333
----
334334
// TEST[s/^/PUT my-index-2099.05.06-000001\n/]
335+
336+
[discrete]
337+
[[remove-index]]
338+
=== Remove an index
339+
340+
To remove an index, use the aliases API's `remove_index` action.
341+
342+
[source,console]
343+
----
344+
POST _aliases
345+
{
346+
"actions": [
347+
{
348+
"remove_index": {
349+
"index": "my-index-2099.05.06-000001"
350+
}
351+
}
352+
]
353+
}
354+
----
355+
// TEST[s/^/PUT my-index-2099.05.06-000001\n/]

0 commit comments

Comments
 (0)