From 8e556aac674c5aefd4ebc0484b7063c589dc06ce Mon Sep 17 00:00:00 2001 From: zoicware <118035521+zoicware@users.noreply.github.com> Date: Fri, 20 Feb 2026 00:08:06 -0500 Subject: [PATCH] remove copilot chat files when using onedrive --- RemoveWindowsAi.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RemoveWindowsAi.ps1 b/RemoveWindowsAi.ps1 index ddd47ea..d6a4b62 100644 --- a/RemoveWindowsAi.ps1 +++ b/RemoveWindowsAi.ps1 @@ -2195,7 +2195,10 @@ function Remove-AI-Files { #remove any screenshots from recall Write-Status -msg 'Removing Any Screenshots By Recall...' Remove-Item -Path "$env:LOCALAPPDATA\CoreAIPlatform*" -Force -Recurse -ErrorAction SilentlyContinue - + if ($env:OneDrive) { + Remove-Item -Path "$env:OneDrive\Microsoft Copilot Chat Files" -Force -Recurse -ErrorAction SilentlyContinue + } + #remove ai uri handlers Write-Status -msg 'Removing AI URI Handlers...' $uris = @(