influxDB retention not working

Hi.

I have my persistance set to influxDB, and it works most of the time ( sometimes some items do not get stored, but that is another issue ).

Now I set up the retention policy like this:

name duration shardGroupDuration replicaN default


autogen 0s 168h0m0s 1 false
myRet 24h0m0s 24h0m0s 1 true

And I hoped it would only keep the data in the database for 24 hours. But it does not… records do not get deleted after 24h.

Is there anything else I need to set?