27

How does one completely remove vcpkg and all installations/system changes made by it?

I recall seeing some FAQ about vcpkg where it said that you could just delete the vcpkg folder. However, I've been trying to find that same FAQ for over an hour now, to no avail. Also "just delete the folder" being the solution seems implausible to me, since I would assume vcpkg changes some environment variables or other settings, as well as the integration with Visual Studio that I was trying to use. Online search on this topic only yielded people discussing how to remove multiple installed libraries at once, with no clear solution even to that problem (I would be interested in this as well). The vcpkg website itself seems to offer no answers to this question.

edit: I found the page saying "just delete the folder" at docs.microsoft.

Adomas Baliuka
  • 1,384
  • 2
  • 14
  • 29
  • 1
    just delete the folder as suggested. if you are going re install it in another directory location then also delete the existing vcpkg location and remove/modify any associated environmental variable you have set that refers the old installation location. – shobhonk Aug 04 '19 at 23:27
  • 4
    May also want to do `vcpkg integrate remove` if you ran `vcpkg integrate install` before. – kjpus Sep 03 '19 at 15:55

1 Answers1

44

The documentation page https://learn.microsoft.com/en-us/cpp/build/vcpkg offers the instruction how to uninstall:

Uninstall vcpkg

Just delete the directory.

It could also mention that removing the vcpkg directory completely actually uninstalls all the installed libraries (all ports), because the vcpkg directory is the sole place where vcpkg.exe deploys any files.

Additionally, if you did run vcpkg integrate install, then you may also run vcpkg integrate remove to remove the user-wide (global) integration. vcpkg integrate remove Remove user-wide integration

mloskot
  • 37,086
  • 11
  • 109
  • 136
  • 16
    There is also a `vcpkg` directory in the `AppData\Local` one. It contains an `archive` sub-directory with all built packages and also a `config` file with `User-Id` and other personal information. – Rostislav Krasny Oct 28 '20 at 22:44