Contact Info

Crumbtrail » 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 »


Short description
Deletes a variable and its value.

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

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