Updated incorrect `DeleteRequest` to `DeleteIndexRequest` (#6568)

Signed-off-by: Jonny Coddington <bottlerocketjonny@protonmail.com>
This commit is contained in:
Jonny Coddington 2024-03-04 17:09:33 +00:00 committed by GitHub
parent 93d07a0dcb
commit 9156e32cfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 %}