Purging InfluxDB

hi all,

does anyone know if there is an option to purge InfluxDB similar to recorder component?
I am using InfluxDB simply to create better graphs with Grafana and display in HA not being interested in long time stats.

in order to have the best performance possible InfluxDB database is on a ramdisk (RPI3 based) hence i would like to purge to avoid it increases too much in size.

InfluxDB has a built-in functionality for this called “retention policies”. I have never used it but you should drop the influxdb database and re-create it with the desired retention policy (e.g. 7 days). From then on InfluxDB will automatically purge old data.

great! thanks!