Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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!