From b21be418cd7bf45f3ef1175db72df6a377dbd2fa Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Wed, 12 Aug 2026 16:40:26 +0200 Subject: [PATCH] fix: force removal of empty LastUsedSettings.json file --- Win11Debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 5bc6cd4..908f60b 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -510,7 +510,7 @@ if ($script:Params.ContainsKey("AppRemovalTarget")) { # Remove LastUsedSettings.json file if it exists and is empty if ((Test-Path $script:SavedSettingsFilePath) -and ([String]::IsNullOrWhiteSpace((Get-content $script:SavedSettingsFilePath)))) { - Remove-Item -Path $script:SavedSettingsFilePath -recurse + Remove-Item -Path $script:SavedSettingsFilePath -Force } # Default to CLI mode for deployment-targeted parameters.