Influxdb - Logrotate - contents is not deleted

Hi,

The below is the /var/log/influxdb/influxd.log file:

The contents of the file were not deleted.