kafka__DeleteKafkaMessage
Delete messages from a Kafka topic by specifying the instance, project, topic, and partition offsets. Use it to remove unwanted records and manage message retention at targeted offsets.
Instructions
[KAFKA] Kafka删除消息。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instance_id": "<instance_id>",
"project_id": "<project_id>",
"topic": "<topic>"
},
"name": "kafka__DeleteKafkaMessage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | Topic名称。 | |
| partitions | No | 分区消费位点详情 | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](kafka-api-0036212547.xml)。 | |
| instance_id | Yes | 实例ID。 |