Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Remove-Variable

Remove-Variable - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Remove-Variable

Short description
Deletes a variable and its value.

Syntax
Remove-Variable [-Name] <String[]> [-Exclude <String[]>] [-Force] [-Include <String[]>] [-Scope <String>] [-Confirm] [-
WhatIf] [<CommonParameters>]





Description
The Remove-Variable cmdlet deletes a variable and its value from the scope in which it is defined, such as the current 
session. You cannot use this cmdlet to delete variables that are set as constants or those that are owned by the system
.