public void DestroyObserver(string path) { foreach (var observer in DateValue.listObserver) { if (observer.Path == path) { observer.Destroy(); DBManager.DeleteObserver(path); } } }