public HttpResponseMessage RemoveClustering() { if (ClusterManager.Engine.CurrentTopology.AllNodes.Count() > 1) { return(GetMessageWithString("Remove clustering is available on single node clusters only.", HttpStatusCode.BadRequest)); } // delete Raft persistent storage and init new one ClusterManager.CleanupAllClusteringData(SystemDatabase); var newClusterManager = ClusterManagerFactory.Create(SystemDatabase, DatabasesLandlord); ((Reference <ClusterManager>)Configuration.Properties[typeof(ClusterManager)]).Value = newClusterManager; return(GetEmptyMessage(HttpStatusCode.NoContent)); }