DeleteDataStream
Deletes a specified cluster data stream.
Operation description
Deleting a data stream also deletes its corresponding backing indexes. Proceed with caution. - If an index template has associated data streams, you must delete the associated data streams before you can delete the index template. On the Data Streams page, view the data stream details to find the matching index template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:DeleteDataStream |
none |
*All Resource
|
None | None |
Request syntax
DELETE /openapi/instances/{InstanceId}/data-streams/{DataStream} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-nif24adwc0082**** |
| DataStream |
string |
Yes |
The name of the data stream. |
ds-001 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
Ensures the idempotence of the request. This parameter is generated by the client and must be unique across requests. The value can be up to 64 ASCII characters in length. |
5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Result |
boolean |
The returned result. Valid values:
|
true |
| RequestId |
string |
The request ID. |
F99407AB-2FA9-489E-A259-40CF6DCC**** |
Examples
Success response
JSON format
{
"Result": true,
"RequestId": "F99407AB-2FA9-489E-A259-40CF6DCC****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.