Remove all spin json list of elements from another spin json list

See below post by @thorben

So you can use

spinJson1.remove(obj);

to remove a specific object

or

spinJson1.removeAt(index);

to remove element at a specific index.

or simply assign it to an empty array to clear all elements

In your case, you could iterate on elements of the second list and do

spinJson1.remove(obj);
on each object

1 Like