Deleting a Log Stream
Function
This function describes how to delete a log stream that will not be used. (Currently, only CN North-Beijing4 is supported.)
Before deleting a log stream, ensure that the log stream has no log transfer task. Deleted log streams cannot be recovered. Therefore, exercise caution when performing this deletion operation.
URI
- URI format
DELETE /v2/{project_id}/groups/{group_id}/topics/{topic_id}
- Path parameter description
Table 1 Parameter description Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID obtained from Identity and Access Management (IAM). Generally, a project ID is a string containing 32 characters.
group_id
Yes
String
ID of a created log group.
topic_id
Yes
String
ID of a created log stream.
Request
- Request header parameter description
Table 2 Parameter description Parameter
Mandatory
Type
Description
X-Auth-Token
Yes
String
User token obtained from IAM.
Content-Type
Yes
String
Content type, which is application/json.
- Example request
DELETE /v2/{project_id}/groups/{group_id}/topics/{topic_id}
Response
- Parameter description
None
- Example response
None
Returned Value
- Normal
204
- Abnormal
For details, see Status Code.
Last Article: Creating a Log Stream
Next Article: Public Parameters
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.