DocsRandomDelete First Line

Delete the first line of a TXT file in RunMacro

RunMacro RunnerRunMacro 3.5+

The Delete First Line command removes the first non-empty line of a TXT file.

Dialog & quick setup

RunMacro Delete First Line command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Delete First Line command in RunMacro.
  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.

Options reference

TXT file path

The file whose first line will be removed.

Modes & when to use

RunMacro Runner

Best for

  • 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.

Use an alternative when

  • Do not use it without a backup or while multiple processes write the file.
Before you run
  • Add Delete First Line to the macro.
  • Prepare the data or target that Delete First Line will use.

Example workflow

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.
Expected result: After execution, Delete First Line completes the described action and makes its result available to the next step.

Tips & limitations

This changes the real file and cannot be undone — back up the list file first.
  • It is destructive and not atomic with a preceding read; rewriting a large file can be slow.

Applies to RunMacro 3.5+ · RunMacro Runner · Windows 10/11

RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.