If they are in such a hurry to get rid of them, it sounds like the swarm may have just moved in, rather than having swarmed from that tree.
If so, they have no stores, so a trap should empty the tree in a matter of a few days.
On the chance they did come from the tree,
If a virgin queen comes out and goes in the trap, you still have weeks to complete the trap out. There will be bees emerging for at least a week, then another week or two before they are old enough to fly.