Batch Deleting Topics of a Kafka Instance
Function
This API is used to delete multiple topics of a Kafka instance in batches.
Debugging
You can use API Explorer to debug this API.
URI
POST /v2/{project_id}/instances/{instance_id}/topics/delete
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
| instance_id | Yes | String | Instance ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| topics | No | Array of strings | List of topics to delete. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| topics | Array of topics objects | Topic list. |
Example Requests
POST https://{endpoint}/v2/{project_id}/instances/{instance_id}/topics/delete
{
"topics" : [ "topic01" ]
} Example Responses
Status code: 200
The deletion is successful.
{
"topics" : [ {
"id" : "haha",
"success" : true
}, {
"id" : "aabb",
"success" : true
} ]
} Status Codes
| Status Code | Description |
|---|---|
| 200 | The deletion is successful. |
Error Codes
See Error Codes.
Last Article: Modifying Topics of a Kafka Instance
Next Article: Querying Topic Details
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.