Hello,
Every time when I run the workflow new files are generated . i want alteryx to check the directory and if the number of files is more than or equal to 10 then it should delete last 5 files
Solved! Go to Solution.
I have tried that , but there is restriction in running command , is there any other alternative way to delete files
Hi @adarsh2608 , there is this other way, the files can be deleted using the python component. Please test this macro, i built it to do this task.
Delete Files - Alteryx Community
Basically you need to pass the filepaths to the macro and it will handle the task.
If the provided answer helped you to solve the problem/was correct, please accept it as a solution :)
Thanks.