delete_topic_records
Delete Kafka topic records up to a given offset and partition to free storage or reset data.
Instructions
Delete records from a topic
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": {
"cluster": "<cluster>",
"topicName": "<topicName>",
"offset": "<offset>",
"partition": "<partition>"
},
"name": "delete_topic_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | Yes | Delete records up to this offset | |
| cluster | Yes | Cluster name | |
| partition | Yes | Partition number | |
| topicName | Yes | Topic name |