0 | module Pack.Runner.Uninstall
2 | import Pack.Config.Environment
3 | import Pack.Config.Types
5 | import Pack.Core.Logging
6 | import Pack.Core.Types
17 | -> {auto pd : PackDirs}
18 | -> {auto _ : HasIO io}
19 | -> EitherT PackErr io ()
21 | info "Uninstalling pack"
24 | This command will remove pack together with the Idris2 compiler
25 | managed by pack and all installed libraries. You might need
26 | to manually remove some of the executables managed by pack
27 | located in `\{pd.bin}`.
29 | Please note that your personal settings at `\{userDir}` will not
32 | confirmOrAbort Info msg
36 | rmFile (pathExec "idris2")
37 | rmFile (pathExec "idris2-lsp")