Removes the value from a variable.
Snap-In: Microsoft.PowerShell.Utility
Syntax:
Clear-Variable
[-Name] <String[]> [-Include <String[]>] [-Exclude <String[]>] [-Force] [-PassThru] [-Scope <String>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>] [-WhatIf] [-Confirm]
Description:
Clears the data stored in an existing variable. If the variable is typed, then clear-variable preserves the type of the object stored in the variable. Clear-variable sets the value to NULL, but leaves the variable intact.