KIP-204 — Adding records deletion operation to the new Admin Client API
Accepted Kafka 1.1 Admin
Adds `deleteRecords(Map<TopicPartition, RecordsToDelete>)` to the new Java `AdminClient` API, exposing the existing `DeleteRecordsRequest` (API key 21) that was previously accessible only via the legacy Scala admin client. The new `AdminClient` introduced in KIP-117 lacked record deletion support, forcing users to fall back to the deprecated Scala tool or rely on time-based retention.
Details
| Author | Paolo Patierno |
| Status | Accepted |
| Kafka Version | 1.1 |
| JIRA | KAFKA-5925 |
| Wiki | View on Apache Wiki |
| Created | 2017-09-18 |
| Last Modified | 2017-11-15 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.