In our design, Kafka topics are created on the fly and used for a short period of time. While new topics are created and used, previously created topics may go out of use. There is a need to periodically delete unused topics. Say for simplicity, we would like to delete all the topics that have not been used (and are empty) for last 2 days.
Is there an established solution for this case? Any pointers on how to achieve this?
(We will be using AWS MSK (Kafka version 2.8))