Principle:Apache Kafka Topic Deletion
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Administration, Data_Management |
| Last Updated | 2026-02-09 12:00 GMT |
Overview
An administrative operation that removes topics and their associated data from a Kafka cluster.
Description
Topic Deletion removes one or more topics from the Kafka cluster, including all their partitions, replicas, and stored messages. The operation is coordinated through the controller which marks topics for deletion and propagates the change. Once deletion begins, the topic becomes unavailable for producing or consuming.
Usage
Use this principle when decommissioning topics that are no longer needed. Deletion is irreversible and should be used with caution in production environments.
Theoretical Basis
- Request Submission: Send a DeleteTopicsRequest to the controller with the list of topics.
- Metadata Update: The controller marks topics as deleted in the metadata.
- Replica Cleanup: Each broker stops serving partitions and deletes log segments for the deleted topics.
- Completion: The operation completes when all replicas have been cleaned up.
Related Pages
Implemented By
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment