Automate Dropbox: Delete PNGs Older than 48 Hours
Automate Dropbox: Delete PNGs Older than 48 Hours
Couldn't load pickup availability
Automate Dropbox: Delete PNGs Older than 48 Hours
Keep your Dropbox storage clean and organized with this intelligent automation that automatically deletes PNG files older than 48 hours. Perfect for teams generating temporary AI images, exports, or cached assets that need regular cleanup without manual intervention.
What this workflow does
This n8n automation workflow provides scheduled maintenance for your Dropbox account by scanning for PNG files and removing outdated content. The workflow runs every 2 days using a schedule trigger, searches your entire Dropbox for PNG files, and intelligently filters them based on age and protection rules. Using a sophisticated code node, it identifies files older than 48 hours while respecting exclusion lists for protected folders and filenames. The system processes deletions in batches to prevent API rate limiting, ensuring reliable operation even with large file volumes.
Use cases
- AI image workflows: Automatically clean up temporary PNG outputs from image generation tools and design automation
- Export management: Remove outdated screenshot exports, report graphics, and visualization files
- Cache cleanup: Maintain storage efficiency for workflows that create temporary PNG assets
- Team collaboration: Keep shared Dropbox folders organized by removing old preview images and thumbnails
- Development workflows: Clean up PNG assets from testing, staging, or build processes
Technical details
- Integrations: Dropbox OAuth2 API integration for file management
- n8n nodes: Schedule Trigger, Dropbox, Code, Split in Batches, Sticky Note
- Requirements: n8n platform (cloud or self-hosted), active Dropbox account, configured OAuth2 credentials
- Customization options: Adjustable file age thresholds, support for different file types (.jpg, .mp4, etc.), configurable exclusion paths, flexible scheduling frequency
Setup takes minutes: import the workflow, connect your Dropbox credentials, optionally adjust the 48-hour threshold or schedule frequency, test with sample files, and activate. The automation runs reliably in the background, maintaining your Dropbox organization while preserving important files through smart filtering rules.
