diff --git a/src/vnsw/agent/oper/namespace_manager.cc b/src/vnsw/agent/oper/namespace_manager.cc index 300e72a4c12..0a259977f05 100644 --- a/src/vnsw/agent/oper/namespace_manager.cc +++ b/src/vnsw/agent/oper/namespace_manager.cc @@ -696,7 +696,7 @@ void NamespaceManager::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;