Need Script Run by Cronjob Delete Table Of DB

Hi Dear Friend I have DB By for example graphite Now i need Script that run every day by cronjob
that delete all table older 3 month from this database
have any body this script for influxdb ?
Please help me ?

@ramin_malek you don’t need any script for this. Just set your bucket’s retention policy to 3months and InfluxDB will automatically take care of deleting old data.