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 Random Delete First Line
🗑 Random

Delete the first line of a TXT file in RunMacro

What it does

The Delete First Line command removes the first non-empty line of a TXT file. It is typically used right after you fetched and processed that line, so the next run picks the following one.

When to use it

  • Process an account/data list line by line.
  • Drop a used item so it is not repeated.
  • Pair with Get Ref from TXT to form a queue.

Configuration steps

  1. After using the first line (via Get Ref from TXT).
  2. Add a Random › Delete First Line command and choose the same file.
  3. Save. The first line is removed; the rest shift up.

Every option explained

TXT file path

The file whose first line will be removed.

Real example

Example: an account queue

  1. Get Ref from TXT takes the top account.
  2. Log in and process.
  3. Delete First Line so the next run takes the following account.

Tips & common mistakes

This changes the real file and cannot be undone — back up the list file first.
RunMacro robot

Ready to automate smarter?

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