$foo = "Temporary String" # remove a variable Remove-Item Variable:\\foo # $foo is gone.