Recently started using Kafka.
I understand Kafka has two retention configuration, by time and by size.
sh-4.2$ pwd /opt/kafka/config