tencent cloud

All product documents
Deleting Data
Last updated: 2025-01-03 10:32:49
Deleting Data
Last updated: 2025-01-03 10:32:49

Request Address

The address is the instance IP and port, such as 10.13.20.15:9200, which can be obtained in the console.

Request Path and Method

Request path: /${metric_name}/_delete_by_query, where ${metric_name} is the metric name. Method: POST

Request Parameters

None

Request Content

Query conditions when a metric is deleted. For more information, please see the sample.

Response Content

You need to judge whether a request is successful based on the error field. If the response content contains the error field, the request failed. The specific error information is in the error field.

Sample Code for curl

Request:
curl -u root:le201909 -H 'Content-Type:application/json' -X POST 172.16.345.14:9201/ctsdb_test/_delete_by_query -d'
{
"query": {
"bool": {
"filter": {
"match_all": {}
}
}
}
}'
Response:
{
"took": 43,
"timed_out": false,
"total": 1,
"deleted": 1,
"batches": 1,
"version_conflicts": 0,
"noops": 0,
"retries": {
"bulk": 0,
"search": 0
}
}
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon