I am using this formula for removing the items from the collection as well as from gallery and then updating the collection but this is not removing the items.
RemoveIf(colLocationinfoWithNumber,ID<=24);
Collect(colLocationinfoWithNumber,colLocationinfoWithNumber)