mirror of
https://github.com/iSharkFly-Docs/opensearch-docs-cn
synced 2025-03-09 14:38:01 +00:00
Updated incorrect DeleteRequest
to DeleteIndexRequest
(#6568)
Signed-off-by: Jonny Coddington <bottlerocketjonny@protonmail.com>
This commit is contained in:
parent
93d07a0dcb
commit
9156e32cfb
@ -344,7 +344,7 @@ client.delete(b -> b.index(index).id("1"));
|
|||||||
The following sample code deletes an index:
|
The following sample code deletes an index:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
DeleteIndexRequest deleteIndexRequest = new DeleteRequest.Builder().index(index).build();
|
DeleteIndexRequest deleteIndexRequest = new DeleteIndexRequest.Builder().index(index).build();
|
||||||
DeleteIndexResponse deleteIndexResponse = client.indices().delete(deleteIndexRequest);
|
DeleteIndexResponse deleteIndexResponse = client.indices().delete(deleteIndexRequest);
|
||||||
```
|
```
|
||||||
{% include copy.html %}
|
{% include copy.html %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user