What happens if a "Remove list" returns a single item

As i understand “remove” is used to remove a single item from a list, whereas “remove list” is used to remove multiple items from a list.

What happens if the list i try to remove with “remove list” returns only 1 item (which could happen in certain occasions).

If its ok, then why is there 2 type (“Remove list” and “remove”)?

Hi,
The simple answer is that it would work as you expect. If you use “Delete a list of things” and the query returns only one item, it will remove only that one item. If it returns many, it will remove those. If it returns none, it will not remove anything.

You’d use “Delete thing” (the one for one item) when you can specify in your query the item that you need removed. Note that your query in this case could also return an empty set and in that case, nothing would be removed. Also, you can indicate that you want to remove a thing (Bubble’s parlance for a record) manipulated in a previous step (Result of Step x) or one of the parameters passed to the workflow.

Hope this helps,

Alex

This topic was automatically closed after 70 days. New replies are no longer allowed.