From 2e5583d4be25200cfd9a81a781e60cf4339b49e7 Mon Sep 17 00:00:00 2001 From: James Rodewig <40268737+jrodewig@users.noreply.github.com> Date: Tue, 14 Sep 2021 08:59:41 -0400 Subject: [PATCH] [DOCS] Remove shrink snippet from 'Size your shards' (#77593) The current shrink API snippet doesn't show you how to remove replicas or reduce primary shards. Rather than duplicate those instructions from the shrink API docs, this removes the snippet. A link to the shrink API and shrink ILM action docs is already provided. It also updates a delete index API snippet to avoid wildcards. Wildcard expansion for the delete index API is disabled by default in 8.0. --- docs/reference/how-to/size-your-shards.asciidoc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/docs/reference/how-to/size-your-shards.asciidoc b/docs/reference/how-to/size-your-shards.asciidoc index dfa384d1f7d08..045eeba97947b 100644 --- a/docs/reference/how-to/size-your-shards.asciidoc +++ b/docs/reference/how-to/size-your-shards.asciidoc @@ -255,7 +255,7 @@ unneeded indices. [source,console] ---- -DELETE my-index-* +DELETE my-index-000001 ---- // TEST[setup:my_index] @@ -281,12 +281,6 @@ POST my-index-000001/_forcemerge If you no longer write to an index, you can use the <> to reduce its shard count. -[source,console] ----- -POST my-index-000001/_shrink/my-shrunken-index-000001 ----- -// TEST[s/^/PUT my-index-000001\n{"settings":{"index.number_of_shards":2,"blocks.write":true}}\n/] - {ilm-init} also has a <> for indices in the warm phase.