Skip to main content

Remove item

Remove the item at a position, or every item equal to a value.

Command in the List toolkit · id ooa.list/remove_item · 4 inputs (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
ListListYesSource list.
PositionNumberNoPosition to remove.
ValueAnyNoRemove every item equal to this value.
All occurrencesBooleanNotrueWith a value: remove every equal item; when off, only the first.

Outputs​

OutputTypeWhat it is
listListUpdated list.
removedAnyThe removed item (by position), or a list of the removed items (by value).
countNumberNumber of items removed.