Delete Dropbox PNG files older than 48 hours on a schedule
π What this workflow does
This workflow automatically scans your Dropbox for .png files and deletes any that are older than 48 hours, helping you keep your storage clean and organized without manual effort.
Itβs ideal for workflows that generate temporary files such as AI images, exports, or cached assets.
βοΈ How it works
Schedule Trigger Runs every 2 days to perform automated cleanup
Search Dropbox Files Retrieves all .png files from your Dropbox account
Filter Files (Code Node) Keeps only files that:
Are older than 48 hours Match the .png format Are not in excluded paths Are not protected filenames
Loop Over Items Processes files in batches to avoid API rate limits
Delete Files Permanently removes the filtered files from Dropbox
π§© Requirements
n8n (cloud or self-hosted) Dropbox account Configured Dropbox OAuth2 credentials
π§ Setup
Import the workflow into n8n Connect your Dropbox OAuth2 credentials (Optional) Adjust the schedule trigger Test the workflow with sample files Activate the workflow
π Customization
Change file age limit** Update the 48 hours logic inside the Code node
Target different file types** Replace .png with .jpg, .mp4, etc.
Exclude additional files/folders** Add paths or filenames to the exclusion list
Adjust execution frequency** Run daily, hourly, or based on your workflow volume
β οΈ Important notes
Files are permanently deleted (no recovery step included) Always test before enabling in production Ensure correct permissions in your Dropbox credentials
π‘ Use cases
Clean up AI-generated images automatically Manage temporary automation files Prevent Dropbox storage overflow Maintain clean file systems for pipelines
π Summary
This workflow provides a simple and reliable way to automate file cleanup in Dropbox. By combining scheduled execution with smart filtering, it helps you maintain an efficient and clutter-free storage system.
π Need help or want to customize this workflow?
πΊ Contact: Fiverr π© Consultation: Book Appointment
Related Templates
Automate Customer Support & Calendar Bookings with OpenAI GPT and Google Calendar
Website AI Agent with Calendar Integration Categories: AI Agents, Website Integration, Calendar Automation This workfl...
Extract Structured LinkedIn Profile Data with Airtop & AI Parsing
Extracting LinkedIn Profile Information Use Case Manually copying data from LinkedIn profiles is time-consuming and erro...
Capture Gumroad sales, add buyer to MailerLite group, log to Googleβ―Sheets CRM
Turn Gumroad buyers into loyal email subscribers and keep your CRM upβtoβdate. When someone makes a purchase on your Gu...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments