public void RemoveFolder(Uri uri) { CheckUri(uri); string pathRoot = Path.GetDirectoryName(uri.LocalPath); if (pathRoot != null && Directory.Exists(pathRoot)) { Directory.Delete(pathRoot); } }