KeyRoutines
StepFreelist.remove

Remove items from a list by value or by position

Remove from list takes items out of a list, either by matching a value or by position. You get a new list back and the original stays untouched.

How it works

  • Choose remove by value or by position.
  • By value, every equal item is removed unless you turn off the advanced "every copy" option; the number 3 matches the text "3", and text is case-sensitive.
  • By position, 1 is the first item and -1 the last; a position outside the list fails the step and says how many items there are.
  • It returns the new list, its count and how many items were removed.

Routines that use it

Skip one app

Remove your music player from a list of apps before closing the rest with Close app.

Pop the first job

Remove position 1 from a remembered queue and save the rest with Remember.

Clean split text

After Split text, remove every "N/A" before joining the list again.

Settings

SettingWhat it does
ListThe list to remove from.
ByRemove items equal to a value, or the item at a position.
ValueThe value to remove.
AlladvancedRemove every copy, not just the first.
PositionWhich item: 1 for the first, -1 for the last.

Good to know

  • Matching text is case-sensitive.

Questions

Does Remove from list remove all matching items?
Yes by default. Turn off the advanced option to remove only the first match.
Why did removing by position fail?
The position was outside the list. The message tells you how many items the list has.

Pairs well with

Build this routine in KeyRoutines

Free from the Microsoft Store for Windows 11 and 10. Pro is a one-time upgrade.