Hi,
Is there a way to remove variables that I create in a script after it has finished running. I have a script with a dozen odd variables which I would like to delete after the script has done its job.
The options I have seen are:
- Close down the Powershell environment and restart
- Use Remove-Variable command
If I use get-variable and limit the scope to script I see other variables which I did not define. I would only like to remove the variables which I have defined.
Any suggestions would be appreciated.
Regards,
MobileIAm