# Change the RETENTION Policy for InfluxDB

**URL:** https://community.influxdata.com/t/change-the-retention-policy-for-influxdb/3437
**Category:** Store
**Tags:** influxdb
**Created:** [December 17, 2017, 8:35pm UTC](https://community.influxdata.com/t/change-the-retention-policy-for-influxdb/3437 "2017-12-17T20:35:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fchiorascu](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/fchiorascu/32/995_2.png) [@fchiorascu](https://community.influxdata.com/u/fchiorascu)
#### Post date: [December 17, 2017, 8:35pm UTC](https://community.influxdata.com/t/change-the-retention-policy-for-influxdb/3437/1 "2017-12-17T20:35:17Z")

</div>

Hi,

If I change the default retention policy for the InfluxDB from:

> show retention policies  
> name duration shardGroupDuration replicaN default  
> ---- -------- ------------------ -------- -------  
> autogen 0s 168h0m0s 1 true

to: **1 month** , **2 months** is ok?

I must have some pre-requisites or some recommendations?

Kind Regards,

---

<div class="post-metadata">

### Author: ![fchiorascu](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/fchiorascu/32/995_2.png) [@fchiorascu](https://community.influxdata.com/u/fchiorascu)
#### Post date: [December 17, 2017, 8:46pm UTC](https://community.influxdata.com/t/change-the-retention-policy-for-influxdb/3437/2 "2017-12-17T20:46:21Z")

</div>

> show retention policies  
> name duration shardGroupDuration replicaN default

* * *

autogen 0s 168h0m0s 1 false  
telegraf 1440h0m0s 24h0m0s 1 true
