Jump to content

Connect Leeroopedia MCP: Equip your AI agents to search best practices, build plans, verify code, diagnose failures, and look up hyperparameter defaults.

Principle:Apache Kafka Topic Deletion

From Leeroopedia


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

  1. Request Submission: Send a DeleteTopicsRequest to the controller with the list of topics.
  2. Metadata Update: The controller marks topics as deleted in the metadata.
  3. Replica Cleanup: Each broker stops serving partitions and deletes log segments for the deleted topics.
  4. 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