Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Creating job to automatically remove Kafka Topics

avatar
Contributor

Has anybody ever tried to delete unneeded Kafka Topics with a job or in some sort of automated fashion?

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Joe Hellmers

Make sure that topic deletion enabled at the broker level (delete.topic.enable=true) in the entire cluster, and restart it?

Here is how the delete works in Kafka

Check this Github with scripts to delete topics you can readapt it

Hope that helps

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Joe Hellmers

Make sure that topic deletion enabled at the broker level (delete.topic.enable=true) in the entire cluster, and restart it?

Here is how the delete works in Kafka

Check this Github with scripts to delete topics you can readapt it

Hope that helps

avatar
Contributor

That worked perfectly. Thanks!