- mark all items flagged with "trader" as "garbage_collect"
- mark all units flagged with "merchant" as "leaving", "cleanup_1", and "cleanup_2", and unmark them as "incoming"
Do not do this if there are any merchants in the displayed units list as it will cause them to disappear. Use this only if a caravan has inexplicably disappeared from your map.