internal void Remove(PSDriveInfo drive, string scope, ProviderRuntime runtime) { // make sure the provider can clean up this drive properly GetProvider(drive).RemoveDrive(drive, runtime); if (String.IsNullOrEmpty(scope)) { _scope.Remove(drive.ItemName, false); } else { _scope.RemoveAtScope(drive.ItemName, scope); } }
public void Remove(string name) { _scope.Remove(name, true); }