PowerShell Language Reference (Clear-Variable)

[ KiXtart  VBScript  Batch  AutoIt  HTA  PowerShell  Windows Command Lines  Other Command Line Utilities  ]


Clear-Variable  (cmdlet)

Available from version 1 through the latest release.

Syntax
Clear-Variable [-name] <string[]> [-include <string[]>] [-exclude <string[]>] [-scope <string>] [-force] [-passThru] [-whatIf] [-confirm] [<CommonParameters>]

Description
Deletes the value of a variable.

Remarks
As this does not delete the variable, the value of the variable is NULL (empty). If the variable has a specified data or object type, Clear-Variable preserves the type of the object stored in the variable.

For more information, type: "get-help Clear-Variable -detailed".

For technical information, type: "get-help Clear-Variable -full".

Also see:
Get-Variable  Set-Variable  New-Variable  Remove-Variable  


 
Microsoft (built-in help)
 
Have a correction, addition or suggestion on this? Please let us know!
Last Edited: 10/29/2006. This page has been viewed 3055 times. Unless otherwise specified, all information is (C) 2004-2007 iTripoli, Inc. All Rights Reserved.

Note: you can view this information right within ASE by right clicking any keyword and selecting "Help..."



iTripoli prides itself on providing top notch customer service

Find answers or open a ticket to ask directly, when opening a ticket we will suggest relavant articles to help you get answers as quickly and accurately as possible. Visit our support center now!

Please visit our full support center to find answers quickly or submit questions or feedback.