Getting rid of bees from the trees requires getting the queen bees out of the hive. For that, you need to cut the tree branches and remove the queen first. Once this is done, the remaining bees will automatically come out within some time.