Skip to content

Commit c77e176

Browse files
committed
fix: uninstall now removes cached uv libs
1 parent e517ee2 commit c77e176

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Setup/uninstall_frontend.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if (Test-Path $CACHE_DIR) {
112112
Write-Step "ffmpeg"
113113
if (Get-Command ffmpeg -ErrorAction SilentlyContinue) {
114114
if (Prompt-YesNo " Remove ffmpeg?") {
115-
winget uninstall --name "FFmpeg"
115+
winget uninstall --id Gyan.FFmpeg --scope machine
116116
if ($LASTEXITCODE -ne 0) {
117117
Write-Warn "ffmpeg uninstall may have failed — remove manually via winget or Settings -> Apps"
118118
} else {
@@ -130,6 +130,12 @@ if (Get-Command ffmpeg -ErrorAction SilentlyContinue) {
130130
Write-Step "uv"
131131
if (Get-Command uv -ErrorAction SilentlyContinue) {
132132
if (Prompt-YesNo " Remove uv?") {
133+
# Remove uv's Python and package cache before uninstalling the tool itself
134+
$uvCache = "$env:LOCALAPPDATA\uv"
135+
if (Test-Path $uvCache) {
136+
Remove-Item -Recurse -Force $uvCache
137+
Write-OK "Removed uv cache at $uvCache"
138+
}
133139
winget uninstall --id astral-sh.uv
134140
if ($LASTEXITCODE -ne 0) {
135141
Write-Warn "uv uninstall may have failed — remove manually via winget or Settings -> Apps"

0 commit comments

Comments
 (0)