🧡 Skip to main content🔍 Skip to search

Forbid Delete File Action to process files that match initial deletion pattern by configuring file exclusion filter. Exclusion filter works in the same way as file deletion, but with opposite effect—it preserves the files that would be deleted otherwise by narrowing the initial deletion range.

ExcludeDetails
Exclude files Specify either file name & mask or provide data from Variable Wizard to exclude matching files from deletion. Multiple inputs must be separated by | vertical bar character · Learn file masks and wildcards
Examples:
  • *.zip
  • *.tmp | *.log
  • 2023-??-??.pdf | ??-??-2023.pdf
Exclude folders List the folders or subfolders you wish to exclude from the deletion process. Partial paths can be specified to omit certain items. This Action supports folder masks and wildcards. Separate multiple exclusions with | a vertical bar · Learn folder masks and wildcards
Examples:
  • folder
  • data\old | data\*\drafts
  • archive-2023-?? | archive-2024-??
Date after… Files will be excluded on basis of their age (when it is more recent than specified). Both date & time of file and its age in seconds, minutes, hours or days can be specified.
Date before… Files will be excluded on basis of their age (when it is older than specified). Both date & time of file and its age in seconds, minutes, hours or days can be specified.
File date to use Choose which file timestamp will be matched when applying exclusion filter. Creation date specifies when file was first created, Last modified date—last time file was changed, Last accessed date—last time file was read.
Interactive previewShows interactive preview of the advanced date filter. It automatically excludes files of different types—new or old, recently modified, lately used, etc.
Time unitsTime units selectionDefine and set a time frame in any given preferred format—be it milliseconds, seconds, minutes, hours, or days.
Variable WizardVariable Wizard buttonUse dynamic data input—substitute a parameter from a file, web, connected Trigger, other Actions, date and time presets, etc.
YouTube video · Delete old log files

Notes

  • Exclude mask filter is applied to long file name, while both long and short file (8.3) names are present in file system.
  • The Delete File exclude feature may display slightly different messages based on user's selected date ranges and types (exact or dynamic), and selected File date to use option—Creation date, Last modified date, or Last accessed date:
    • Do not delete files that are modified in last…
    • Do not delete files that are created after…
    • Do not delete files that are modified before last…
    • Do not delete files that are modified before…

Seamless automation. Take a quick 90-second journey!

Just ask…

If you have any questions, please do not hesitate to contact our support team.