ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
20.32k stars 1.37k forks source link

[Bug] `scoop cleanup --all --cache` does not clean all cache #6025

Open wickles opened 1 week ago

wickles commented 1 week ago

Bug Report

Current Behavior

scoop cleanup --all --cache does not clear cached downloads for uninstalled apps from ~/scoop/cache

Expected Behavior

All cached downloads for old versions and uninstalled apps should be be removed.

Additional context/output

Examples of apps with leftover files in the cache:

Also cannot be cleared by specifying the app:

> scoop cleanup --cache mysql
ERROR 'mysql' isn't installed.

Possible Solution

System details

Windows version: 11

OS architecture: 64bit

PowerShell version: 7.4.2

Scoop Configuration

{
  "last_update": "2024-06-22T13:19:28.4880705-07:00",
  "aria2-warning-enabled": false,
  "scoop_branch": "master",
  "scoop_repo": "https://github.com/ScoopInstaller/Scoop"
}