From 6b5a9bcb9bcf9b87fa0ea9ecc8758cb8766f0567 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Mon, 8 Jun 2026 17:42:25 +0300 Subject: [PATCH] Added -Recurse for Onedrive Remove-Item command (#4642) --- config/tweaks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/tweaks.json b/config/tweaks.json index 9b6785a5..85e9e3a3 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -673,7 +673,7 @@ icacls $Env:OneDrive /grant \"Administrators:(D,DC)\" if (-not (Get-ChildItem -Path $Env:OneDrive)) { - Remove-Item -Path $Env:OneDrive + Remove-Item -Path $Env:OneDrive -Recurse [Environment]::SetEnvironmentVariable('OneDrive', $null, 'User') }