We are using Apache Kafka perform load test in our dev environment.  

In our Linux box where we have installed confluent kafka ,have limited space hence to perform load test we have added retention.ms property to the topic.

Idea is to remove the message from the topic after it is consumed by the consumer.

I have tried 

```
kafka-topics --zookeeper localhost:2181 --alter --topic myTopic --config retention.ms=10000

```

it didn't work hence we re-created the topic and tried below option.

```
kafka-configs --alter --zookeeper localhost:2181 --entity-type topics --entity-name myTopic -add-config retention.ms=10000 

```

After running the process for few hours the broker is shutting down because of space constraint. 

What other options i can try from Topic as well as from broker standpoint to keep expiring the messages reliably and claiming back the disk space for long running load test.