SOLVED

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

Deleted
Not applicable

Hi,

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

But

VadimDich_1-1629957128821.png


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?







1 Reply
best response
Solution
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.
1 best response

Accepted Solutions
best response
Solution
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.

View solution in original post