Removes a variable and its value.
Snap-In: Microsoft.PowerShell.Utility
Syntax:
Remove-Variable
[-Name] <String[]> [-Include <String[]>] [-Exclude <String[]>] [-Force] [-Scope <String>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] [-WhatIf] [-Confirm]
Description:
The remove-variable Cmdlet goes to the specified variable and removes it and its value from the scope in which it is defined. If the variable is accessed after the removal, an error is thrown.