Delete index
Introduced 1.0
If you no longer need an index, you can use the delete index API operation to delete it.
Path and HTTP methods
DELETE /<index-name>
Query parameters
All parameters are optional.
Parameter | Type | Description |
---|---|---|
allow_no_indices | Boolean | Whether to ignore wildcards that don’t match any indexes. Default is true . |
expand_wildcards | String | Expands wildcard expressions to different indexes. Combine multiple values with commas. Available values are all (match all indexes), open (match open indexes), closed (match closed indexes), hidden (match hidden indexes), and none (do not accept wildcard expressions), which must be used with open, closed, or both. Default is open . |
ignore_unavailable | Boolean | If true, OpenSearch does not include missing or closed indexes in the response. |
cluster_manager_timeout | Time | How long to wait for a connection to the cluster manager node. Default is 30s . |
timeout | Time | How long to wait for the response to return. Default is 30s . |
Example request
DELETE /sample-index
copy
Example response
{
"acknowledged": true
}
当前内容版权归 OpenSearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 OpenSearch .