Docs

RunMacro Documentation

Learn RunMacro from basics to advanced.

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

RunMacro robot
Docs Code Delete Files in Folder
🗑 Code

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

  1. Add a Code › Delete Files in Folder command.
  2. Choose the folder path.
  3. Save. On run, all files in the folder are deleted.

Every option explained

Folder path

The folder to clean. Only direct files are removed, not subfolders.

Real example

Example: clean the images folder before new downloads

  1. Delete Files in Folder C:\Images.
  2. Then use Download Avatar/Images to fetch a fresh set.

Tips & common mistakes

Deletion cannot be undone — double-check the path before running.
RunMacro robot

Ready to automate smarter?

Download RunMacro and start automating your desktop, browser, and business workflows today.