You need to enable JavaScript to run this app.
Torch Log Service

Torch Log Service

Copy page
Download PDF
Topic management API
DeleteTopic
Copy page
Download PDF
DeleteTopic
Call the DeleteTopic interface to delete a topic.​
Usage notes​
This interface is used to delete a topic. The call frequency limit of the interface is 20 times/s. and exceeding the frequency limit will report an error ExceedQPSLimit.​
tip​
After deleting the log topic, all log data and configuration information in it will be permanently deleted and cannot be recovered. Please operate with caution.​
Request syntax​
  • Request Method:DELETE​
  • Request URL:https://{tls-endpoint}/DeleteTopic​
Request parameters​
The table below only lists the request parameters specific to this interface and some common parameters. For more information, please see Common parameters.​
Body​
​
Name​
Type​
Required​
Example​
Description​
TopicId​
String​
True​
C7dadas***​
The ID of the topic.​
​
Responses​
There are no unique return parameters for this interface. For more information, please refer to the Response message.​
Sample Request​
​
DELETE https://{tls-endpoint}/DeleteTopic HTTP/1.1​
Content-Type: application/json​
{​
"TopicId": "c7************"​
}​
​
Sample Response​
​
HTTP/1.1 200 OK​
Content-Type: application/json; charset=utf-8​
{}​
​
Error code​
The following table lists the error codes related to the interface and business logic. For common error codes, please refer to the Common error codes.​
​
HTTP status code​
Error code​
Error message​
Description​
400​
InvalidArgument​
Invalid argument key %s, value %s, please check argument.​
the parameter is invalid.​
404​
TopicNotExist​
topic %s does not exist​
The topic does not exist.​
500​
InternalServerError​
We encountered an unexpected server error, please try again later.​
Internal server error.​
​
​
​
Last updated: 2025.10.28 18:41:13