Docs
RunMacro Documentation
Learn RunMacro from basics to advanced.
Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

Delete all files in a folder in RunMacro
What it does
The Delete Files in Folder command removes all files (leaving subfolders) in a folder you choose. Handy to clean temp data (screenshots, downloads) before or after a run.
When to use it
- Clean a downloads folder before each run.
- Remove temp files after processing.
- Clear a results folder to avoid mixing old data.
Configuration steps
- Add a Code › Delete Files in Folder command.
- Choose the folder path.
- Save. On run, all files in the folder are deleted.
Every option explained
Real example
Example: clean the images folder before new downloads
- Delete Files in Folder
C:\Images. - Then use Download Avatar/Images to fetch a fresh set.
Tips & common mistakes
Deletion cannot be undone — double-check the path before running.
RunMacro