Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I uninstall a powershell module from my computer? [closed]

I installed a Powershell module (posh-git) using PS-Get but I am finding that it is quite slow. I want to uninstall it but using Remove-Module posh-git only uninstalls it from my current session but I would like to make this permanent.

like image 675
Peter Avatar asked Sep 07 '15 15:09

Peter


People also ask

How do I completely Uninstall a PowerShell module?

To uninstall the Az PowerShell module, you can use the Uninstall-Module cmdlet. However, Uninstall-Module only uninstalls the modules specified for the Name parameter. To remove the Az PowerShell module completely, you must uninstall each module individually.

How do I force Uninstall PowerShell?

You can uninstall software using PowerShell in 2 ways, the Uninstall() method and the Uninstall-Package command. Out of the two, the Uninstall() method is the most popular and the easiest option to remove well-known programs from a device.

Which command is used to delete a PowerShell module from the system?

The Remove-Module cmdlet removes the members of a module, such as cmdlets and functions, from the current session. If the module includes an assembly ( . dll ), all members that are implemented by the assembly are removed, but the assembly is not unloaded.


1 Answers

This is an open issue for PS-GET: https://github.com/psget/psget/issues/164:

This should be a feature. Nowadays, you have to delete it manually from C:\Users\[yourUser]\Documents\WindowsPowerShell\modules directory.

like image 193
Richard Avatar answered Oct 19 '22 06:10

Richard