Persistence configuration on Loki


I am using Loki helm chart. I can see it has a persistent volume of 10G and have configured persistence of 10G but my question is how can I configure loki to keep the logs for 30 days.
I have configured to move the logs to S3 bucket but I cannot see any cleanup option so in theory the S3 bucket size will keep growing without any limitation. I want to prevent that as I don’t need the logs that are older than 30 days.

Data retention is documented here

Looks like neither table_manager not compactor is enabled by default in values.yaml

So you will need to configure one of them. I believe compactor is the recommended way. That is also what I am using. I am not using that Helm chart so can say exactly you should configure it through Helm.