Faster method to remove agent from a node