Removing an ArraySchema contained in a schema

Hi! I have a Schema which has an ArraySchema variable and I would like to remove/delete an object contain in that ArraySchema when a player exit the room. Since this ArraySchema is part of another schema, I'm not able to do this.room.mySchema.myArraySchema.onRemove(). Is there a way to do so?

Thanks

Could you elaborate a bit on the structure of the Schema? We currently use nested schemas+array schemas and it works mostly fine.