Uninstall Chocolatey in Windows

Refer to Chocolatey Official website How to uninstall

Uninstall Chocolatey

Uninstall step 1. Delete Chocolatey Folder

Just directly delete the Chocolatey folder, ususally it will be at C:\ProgramData\chocolatey

if you are not sure where it is, you can use following command.

$env:ChocolateyInstall 

fig1◎ Fig1. Check Chocolatey location

fig2◎ Fig2. Delete Chocolatey Folder

Uninstall step 2. Remove chocolately from environment

After deleted the Chocolatey folder, you need to remove chocolately from environment.

fig3◎ Fig3. Remove Chocolatey from Environment step 1

fig4◎ Fig4. Remove Chocolatey from Environment step 2

fig5◎ Fig5. Remove Chocolatey from Environment step 3

fig6◎ Fig6. Remove Chocolatey from Environment step 4

The Official docs indicate there are four following subject need to be removed.

ChocolateyInstall

ChocolateyToolsLocation

ChocolateyLastPathUpdate

PATH (will need updated to remove)

But when I doing the remove, I didn’t see the ChocolateyLastPathUpdate.

updatedupdated2023-11-282023-11-28