diff --git a/src/vnsw/agent/oper/instance_manager.cc b/src/vnsw/agent/oper/instance_manager.cc index 3725c091b0a..694bf64229f 100644 --- a/src/vnsw/agent/oper/instance_manager.cc +++ b/src/vnsw/agent/oper/instance_manager.cc @@ -671,7 +671,7 @@ void InstanceManager::LoadbalancerObserver( haproxy_->GenerateConfig(pathgen.str(), loadbalancer->uuid(), *loadbalancer->properties()); } else { - boost::filesystem::remove(pathgen.str(), error); + boost::filesystem::remove_all(pathgen.str(), error); if (error) { LOG(ERROR, error.message()); return;