You could use an item_remover_device from Verse to clear their inventory.
Here’s what it looks like in my code.
@editable IN_Remove_All : item_remover_device = item_remover_device{}
# Clear inventory.
Clear_Inventory(Agent : agent) : void =
IN_Remove_All.Remove(Agent)
And the item remover config.