I'm not sure if this is what you want, but I use 'Get-Variable | 
Remove-Variable' - which removes all variables.

Mike

From: [email protected] [mailto:[email protected]] On 
Behalf Of Mote, Todd
Sent: Friday, February 26, 2016 12:42 PM
To: [email protected]
Subject: [powershell] clear session variables without closing the session?

Is there an easy or clever way to clear all of the user defined variables I 
define without having to close my UI, or list each of them explicitly for 
remove-variable?  I have a reset button in my UI to clear everything out for 
the next run of this process, but it seems like there's always something left 
behind that screws something up on a subsequent run.

Todd

================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1


================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

Reply via email to