Storage cleaner function to remove all files older than X number of days from the specified bucket.
Remove files older than X days from the specified bucket
Response
Sample 200
Response: Buckets cleaned
Setting | Value |
---|---|
Runtime | Node (18.0) |
Entrypoint | src/main.js |
Build Commands | npm install |
Permissions | any |
CRON | 0 1 * * * |
Timeout (Seconds) | 900 |
The number of days you want to retain a file.
Question | Answer |
---|---|
Required | Yes |
Sample Value | 1 |
The ID of the bucket from which the files are to be deleted.
Question | Answer |
---|---|
Required | Yes |
Sample Value | 652d...b4daf |