PowerShell Logo Small

Remove-Variable



This is the built-in help made by Microsoft for the command 'Remove-Variable', in PowerShell version 4 - as retrieved from Windows version 'Microsoft Windows 8.1 Enterprise' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Deletes a variable and its value.

SYNTAX


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



Search powershellhelp.space

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 v
ariables that are set as constants or those that are owned by the system.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/pp>