How to control the data retention period