Removes a drive from its location.
Snap-In: Microsoft.PowerShell.Management
Syntax:
Remove-PSDrive
[-Name] <String[]> [-PSProvider <String[]>] [-Scope <String>] [-Force] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] [-WhatIf] [-Confirm]
Description:
Used to remove an existing drive. When a provider name and no drive name is specified, then all drives exposed by that provider are removed. An error will result if the current working location is set to a container on a drive that is being removed.