The remove item works only on pure arays (no schema)...
In your case I suppose you could use the remove item in index by defining the $indeex of the record you want to delete (if that is workable for you)
Please have a look at this docs from @Hyperbytes wxplaining how ArrayLists work: