Forum Discussion

Deleted's avatar
Deleted
Aug 26, 2021

Uninstall-Module doesn't find the module. Any hints for manual uninstallation?

Hi,

I happened to install one PS module under my user profile, and now PS neither wants to upgarade it nor uninstall.

But


I figured out that the module is installed into the Documents folder syncind to OneDrive, and then found an article telling that it makes PS confused. So I tried 2 workarounds from the article, namely adding the path to the module to the environment variable PSModulePath and stopping OD backup of the Documents folder. None of these helped.

Are there any hints how to remove the module? I could of course manully delete the files but how to make PS to unsee the module?







  • Eventually I found what was wrong.
    The module wasn't installed with Install-Module cmdlet so naturally it couldnt't be uninstalled or updated. Simple deletion of the entire folder with the module's files helped, it doesn't show up amymore.
  • Eventually I found what was wrong.
    The module wasn't installed with Install-Module cmdlet so naturally it couldnt't be uninstalled or updated. Simple deletion of the entire folder with the module's files helped, it doesn't show up amymore.

Resources