This n8n workflow automates the process of managing cloud storage by deleting files older than two weeks from an S3 bucket and sending notifications upon completion. The workflow is triggered on a scheduled basis, specifically at 9 AM every day. It begins with a schedule trigger that initiates the process, followed by connecting to an S3 bucket to retrieve all stored files. Using a Code node, it filters out files that haven’t been modified in the last two weeks based on their ‘LastModified’ timestamp. The filtered files are then systematically deleted from the bucket with a dedicated delete node. Once the cleanup is complete, a notification is sent via Telegram to inform users that the removal process is successful. This workflow is ideal for maintaining cloud storage hygiene by automatically removing outdated files, freeing up space, and keeping team members informed of maintenance activities.
Automated Cleanup of Old Files in Cloud Storage
Node Count | 6 – 10 Nodes |
---|---|
Nodes Used | code, s3, scheduleTrigger, stickyNote, telegram |
Reviews
There are no reviews yet.