0

I'm not sure if it's okay to remove this folder located here C:\ProgramData\chocolatey

This is not related to How to clear Chocolatey cache in the free version? as this did not solve the issue.

hidden folder

Is there a built-in choco command to purge old uninstalled programs.

Nothing in the docs or running the command choco -? leads to believe there's nothing natively to do so.

Here are the contents of my chocolatey folder.

`contents

Then when I run the command choco outdated I get the response Chocolatey has determined 0 package(s) are outdated.

Yet these 3 programs are no longer install, yet remnants of them apps remain.

They were all uninstalled via the choco uninstall app-name command.

Ste
  • 1,352

2 Answers2

1

The built-in choco command to purge old uninstalled programs is a premium (paid) feature:

choco optimize

But there exists a free alternative: How to clear Chocolatey cache in the free version?

3ICE
  • 116
0

The .chocolatey folder is one that is used by Chocolatey directly to store important information about packages/applications that were installed via Chocolatey. It is not recommended to you remove/alter this folder or any of it's contents.

You can run the choco outdated command to get a list of packages that are out of date based on available upstream packages. I am not sure that this is exactly what you are looking for or not, but if you can elaborate on exactly what you mean by "purge old uninstalled programs" I am confident that we can get you to where you want.