This API is used to delete multiple consumer groups of a Kafka instance in batches.
POST /v2/{project_id}/instances/{instance_id}/groups/batch-delete
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. |
instance_id |
Yes |
String |
Instance ID. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
[items] |
Yes |
Array of strings |
List of consumer groups to be deleted. |
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
failed_groups |
Array of failed_groups objects |
List of consumer groups that failed to be deleted. |
total |
Integer |
Number of records that fail to be deleted. |
POST https://{endpoint}/v2/{project_id}/instances/{instance_id}/groups/batch-delete
[ "group1", "group2" ]
Status code: 200
The consumer groups are deleted successfully.
{
"failed_groups" : [ {
"group_id" : "test-1",
"error_message" : "UNKNOW"
}, {
"group_id" : "test-2",
"error_message" : "UNKNOW"
} ],
"total" : 2
}
Status Code |
Description |
|---|---|
200 |
The consumer groups are deleted successfully. |
See Error Codes.