πŸ“ Delete Dropbox PNG files older than 48 hours on a schedule

⚑ 9 views Β· πŸ“ File Management

Description

πŸš€ 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

  1. Schedule Trigger Runs every 2 days to perform automated cleanup

  2. Search Dropbox Files Retrieves all .png files from your Dropbox account

  3. 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
  4. Loop Over Items Processes files in batches to avoid API rate limits

  5. Delete Files Permanently removes the filtered files from Dropbox


🧩 Requirements


πŸ”§ Setup

  1. Import the workflow into n8n
  2. Connect your Dropbox OAuth2 credentials
  3. (Optional) Adjust the schedule trigger
  4. Test the workflow with sample files
  5. Activate the workflow

πŸŽ› Customization


⚠️ Important notes


πŸ’‘ Use cases


🏁 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

πŸ”— Nodes Used

Dropbox, Schedule Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup