# Configure a Cloud Storage cleaning rule

In order to keep the amount of data stored in the bucket that you created for Whaly connectors, you can follow the following steps to create a Cleaning Rule that will automatically delete any files in the Bucket after 15 days.

1. In the Bucket configuration, open the "LIFECYCLE" panel and then, click on ADD A RULE"

![](https://34758050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MC1g4I2_CgXd0qAq1P7%2Fuploads%2F8rJSKLCXS96ohyNn40mo%2FScreenshot%202022-05-18%20at%2011.01.57.png?alt=media\&token=53da4ed1-0684-4dd5-bdef-66f47446b57e)

2\. In the "Select an action" list, select "Delete object"

![](https://34758050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MC1g4I2_CgXd0qAq1P7%2Fuploads%2FfbRae3oEFSK4t87pFek8%2FScreenshot%202022-05-18%20at%2011.02.11.png?alt=media\&token=f9fddc24-aa00-4ffa-9889-00a4c27a3b8d)

3\. In the "Select object conditions", select the "Age" parameter and set "15 days" and click on "CONTINUE"

![](https://34758050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MC1g4I2_CgXd0qAq1P7%2Fuploads%2FWFskMw2FWwVM4n56CE8i%2FScreenshot%202022-05-18%20at%2011.02.33.png?alt=media\&token=ec0d9aca-29a2-4a53-9246-b986a2504908)

4\. Click on "CREATE"

![](https://34758050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MC1g4I2_CgXd0qAq1P7%2Fuploads%2FD8ICRlpn902KokLVRnkN%2FScreenshot%202022-05-18%20at%2011.02.51.png?alt=media\&token=efb53071-b943-4e4a-9fdb-fc042f9367df)

And you are all set 🤗
