Win + X → Windows Powershell (Admin)
Set-ExecutionPolicy RemoteSignednotepad $profileCopy & Paste :
# This script automatically filters the suspected candidates which are to be removed.
Get-ChildItem -Path "$env:ChocolateyInstall\lib" -Recurse -Filter "*.nupkg" | Where-Object {
# Filter packages with version number
$_.Name -match "^.*\.(\d+|\.){2,}\.nupkg"
} | Where-Object {
# whose parent directory does not contain the same version number
$_.Directory.BaseName -ne $_.BaseName
} | % {
# Remove -WhatIf after having run this script and having double-checked (!) each file listed in the previous
# run if it is really supposed to be removed (check the wiki link for information).
Remove-Item $_.FullName -WhatIf
}Ctrl + S to Save