How to delete a list of items from from a list in state

Please how do I remove./delete a list of items from a list in state?


Set the state to be the state’s list :minus list [whatever items you want to remove]


Hi there, @Buddha… you should be able to use the :minus list operator to do what you described. So, set the custom state’s value to its current value minus the list you want to remove, and you should be good to go.


1 Like

Thanks @mikeloc and @NigelG !

1 Like

Hello Mike,

This :minus works, however, it leave behind empty values. This causes an error when I use the value of the state in API call.

Please how can resolve it.

Commas with nothing in them…
Screenshot 2023-03-10 at 3.10.56 PM

Hi @NigelG , please could you kindly help with the error I run it (above post).

The :minus works, but leave behind empty values. instead of completely deleting it.

What happens when you display the list in a repeating group or do a :count?

It is really empty, or is it just something hanging around in the data tab?