Deleting Topics in a Kafka Instance in Batches¶
Note
This API is out-of-date and may not be maintained in the future. Please use the API described in Batch Deleting Topics of a Kafka Instance.
Function¶
This API is used to delete topics in a Kafka instance in batches.
URI¶
POST /v1.0/{project_id}/instances/{instance_id}/topics/delete
Table 1 describes the parameter.
Parameter | Type | Mandatory | Description |
---|---|---|---|
project_id | String | Yes | Indicates the ID of a project. |
instance_id | String | Yes | Indicates the instance ID. |
Request¶
Request parameters
Table 2 describes the parameter.
Parameter | Type | Mandatory | Description |
---|---|---|---|
topics | Array | Yes | Indicates the list of topics to be deleted. |
Example request
POST https://{dms_endpoint}/v1.0/{project_id}/instances/{instance_id}/topics/delete
{
"topics" : ["hah", "aabb"]
}
Response¶
Response parameters
Table 3 describes the parameter.
Parameter | Type | Description |
---|---|---|
topics | Array | Indicates the list of topics. |
Parameter | Type | Description |
---|---|---|
id | String | Indicates the topic name. |
success | Boolean | Indicates whether the topics are deleted. |
Example response
{
"topics" : [{
"id" : "haha",
"success" : true
}, {
"id" : "aabb",
"success" : true
}
]
}
Status Code¶
Table 5 describes the status code of successful operations. For details about other status codes, see Status Code.
Status Code | Description |
---|---|
200 | The topics are successfully deleted. |