From 24de460dcdf6f5ce6c13e2d62df4b7f418acbbce Mon Sep 17 00:00:00 2001
From: Richard Newton <sycnewton@gmail.com>
Date: Thu, 13 Jun 2019 19:44:46 -0700
Subject: [PATCH] Added removal of OneDrive Env: variable

This resolves issue #149
---
 Windows10DebloaterGUI.ps1 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Windows10DebloaterGUI.ps1 b/Windows10DebloaterGUI.ps1
index fe7032d..21fe085 100644
--- a/Windows10DebloaterGUI.ps1
+++ b/Windows10DebloaterGUI.ps1
@@ -1266,6 +1266,8 @@ $RemoveOnedrive.Add_Click( {
         Write-Host "Restarting Explorer that was shut down before."
         Start-Process explorer.exe -NoNewWindow
         Write-Host "OneDrive has been successfully uninstalled!"
+        
+        Remove-item env:OneDrive
     })
 
 $InstallNet35.Add_Click( {