Kafka Error TOPIC_DELETION_DISABLED
Error code 73 · Non-retriable Admin
Topic deletion is disabled.
Common Causes
- `delete.topic.enable=false` is set in `server.properties` (the default was false before Kafka 1.0)
- Operator explicitly disabled topic deletion to prevent accidental data loss in production
- Running an older Kafka version where topic deletion is disabled by default
Solutions
- Set `delete.topic.enable=true` in `server.properties` and rolling-restart brokers to enable topic deletion
- If deletion must remain disabled (compliance requirement), use ACLs to restrict topic creation and manage lifecycle via a platform team
- As a workaround without enabling deletion, remove all partitions' data by reducing `retention.ms` to 1ms temporarily, then reset to original value after segments are deleted
Diagnostic Commands
# Check topic deletion setting
grep 'delete.topic.enable' /path/to/server.properties
# Check if topic deletion is enabled
kafka-configs.sh --bootstrap-server localhost:9092 --entity-type brokers --entity-default --describe | grep delete.topicRelated APIs
This error can be returned by: DeleteTopics
Related KIPs
Debugging Kafka errors? Conduktor Console gives you real-time visibility into your cluster. Explore all errors in the Error Decoder.