You can set the retention.ms to something really small, i.e. 60 seconds, & kafka will delete everything older than 60 seconds (eventually).
bin/kafka-topics.sh --zookeeper zookeeper.yoursite.com --alter --topic your-topic --config retention.ms=60000 Remember to set it back to something sane after cleanup. Foo On Thu, Jul 16, 2015 at 4:30 PM, JIEFU GONG <jg...@berkeley.edu> wrote: > I'm running into an issue right now where after performing some tests I've > actually exhausted disk storage and am trying to clear it. This is a rather > naive question, but how would i go about manually purging my memory of all > the accumulated messages? I can't find a specific location as it seems like > I only configure the directory where logs are written, can anyone point me > in the right direction? Much appreciated! > > -- > > Jiefu Gong > University of California, Berkeley | Class of 2017 > B.A Computer Science | College of Letters and Sciences > > jg...@berkeley.edu <elise...@berkeley.edu> | (925) 400-3427 >