mirror of
https://github.com/zoicware/RemoveWindowsAI.git
synced 2026-02-27 15:46:50 +01:00
remove copilot chat files when using onedrive
This commit is contained in:
@@ -2195,6 +2195,9 @@ function Remove-AI-Files {
|
|||||||
#remove any screenshots from recall
|
#remove any screenshots from recall
|
||||||
Write-Status -msg 'Removing Any Screenshots By Recall...'
|
Write-Status -msg 'Removing Any Screenshots By Recall...'
|
||||||
Remove-Item -Path "$env:LOCALAPPDATA\CoreAIPlatform*" -Force -Recurse -ErrorAction SilentlyContinue
|
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
|
#remove ai uri handlers
|
||||||
Write-Status -msg 'Removing AI URI Handlers...'
|
Write-Status -msg 'Removing AI URI Handlers...'
|
||||||
|
|||||||
Reference in New Issue
Block a user