The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
GELÖST

Deleting old input files

StephenT
Asteroid

Hi all

I have seen a few posts regarding the deletion of "old" input filers then running the workflow, or as a cleanup after the workflows have been run, but can't seem to locate solution for my requirements.

I need to be able to delete all files in a specific folder, older than 48 hours (new files are created every Monday and Thursday).

The only issue I can see is the folder name has both spaces and an ampersand ('&') [e.g. G:\Shared drives\AU Desktop Support National\Operational & Reporting\Departers\Input files], which is causing a 'parse' error when/if I use the formula tool 


There are 10 files in the folder consisting of either  ZIP or XLSX files, does not contain any subfolders and all files can be completely deleted.

The "Directory Tool" is recognising the directory structure correctly

StephenT_1-1646266815982.png


Can anyone offer a suggestion as to fixing the parse error, so the files can be deleted ?

11 ANTWORTEN 11
Luke_C
17 - Castor
17 - Castor

Hi @adarsh2707, yes that would be possible. Probably via passing your list of folders through a batch macro

adarsh2707
Asteroid

Thank you very much 

Beschriftungen
Top-Lösungs-Autoren