Hi how do i uninstall clojure tools which is installed via powershell?
From a PS session where you haven't run any clj commands this should work Get-Module -Name ClojureTools | Split-Path | Remove-Item -Recurse
Get-Module -Name ClojureTools doesn't return anything. even in Get-InstalledModule. but in Documents/WindowsPowerShell/Modules/, there's a ClojureTools.
I plan to install clojure via scoop, since that's the way I installed most of my tools.
Can I just delete the ClojureTools in Documents/WindowsPowerShell/Modules/?
yeah, the installer script just unzips a ps module there
ok. thank you. i just thought deleting it may cause some problems in the future that's why i want to know the right way to uninstall the ps module
unfortunately AFAIK there's no generic way in PowerShell (other than just deleting the folder)...in general PS just searches for modules in the paths registered in $env:PSModulePath. For things installed via install-package/install-module you can use uninstall-module, some modules just install into one of the default locations, some ship installers that add app folders to $env:PSModulePath, etc.
@seancorfield I could be mistaking, but he asked *un*installing and that isn't described here: https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows
Oh, my bad! Yes, sorry.
Gone! 🙂
But I agree, scoop is pretty convenient :) (#scoop)
(I still hold that the best way to develop Clojure on Windows 10 is via WSL2 -- and using brew for managing the installs on Ubuntu)
I have yet to try this WSL2. I already installed it. But it needs a distro like ubuntu. until now, i haven't continue installing one.
@cjpangilinan I thought it auto-installed Ubuntu by default when you first started it up, but it's been a while. I know several distros were easily installable from the Microsoft Windows Store (who would ever have thought?).
I don't disagree.