This API is used to delete multiple topics of a Kafka instance in batches. If some topics are deleted successfully while some fail to be deleted, a success response is returned with information about topics that fail to be deleted.
POST /v2/{project_id}/instances/{instance_id}/topics/delete
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain it, see Obtaining a Project ID. |
instance_id |
Yes |
String |
Instance ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
topics |
No |
Array of strings |
Topics to delete. This parameter is mandatory when instance topics are deleted in batches. |
Status code: 200
Parameter |
Type |
Description |
---|---|---|
topics |
Array of topics objects |
Topic list. |
Batch deleting topics
POST https://{endpoint}/v2/{project_id}/instances/{instance_id}/topics/delete { "topics" : [ "topic01" ] }
Status code: 200
The deletion is successful.
{ "topics" : [ { "id" : "topic01", "success" : true } ] }
Status Code |
Description |
---|---|
200 |
The deletion is successful. |
See Error Codes.