Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Deleting old input files

StephenT
8 - 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 REPLIES 11
Luke_C
17 - Castor

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

adarsh2707
8 - Asteroid

Thank you very much 

Labels