From 9156e32cfba02eddf32742cd88d5fd5b5050c9c1 Mon Sep 17 00:00:00 2001 From: Jonny Coddington Date: Mon, 4 Mar 2024 17:09:33 +0000 Subject: [PATCH] Updated incorrect `DeleteRequest` to `DeleteIndexRequest` (#6568) Signed-off-by: Jonny Coddington --- _clients/java.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_clients/java.md b/_clients/java.md index e47070bd..4c1e06a4 100644 --- a/_clients/java.md +++ b/_clients/java.md @@ -344,7 +344,7 @@ client.delete(b -> b.index(index).id("1")); The following sample code deletes an index: ```java -DeleteIndexRequest deleteIndexRequest = new DeleteRequest.Builder().index(index).build(); +DeleteIndexRequest deleteIndexRequest = new DeleteIndexRequest.Builder().index(index).build(); DeleteIndexResponse deleteIndexResponse = client.indices().delete(deleteIndexRequest); ``` {% include copy.html %}