Reputation: 53263
I wan to remove all imported modules before importing them so that I can get the fresh ones by overwriting the ones in the memory.
How can I remove all imported modules in PowerShell?
Thanks
Upvotes: 9
Views: 14387
Reputation: 60938
this should do it:
get-module | Remove-Module
this remove also imported modules in $profile
.
Upvotes: 13