Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to uninstall #789

Open
hohwille opened this issue Nov 21, 2024 · 0 comments
Open

Add support to uninstall #789

hohwille opened this issue Nov 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hohwille
Copy link
Member

hohwille commented Nov 21, 2024

As a IDEasy user, I want to be able to uninstall the IDEasy product so that I can get rid of it in case I want to without further manual steps and knowing internal details how to do that.

We already support ide uninstall «tool» to uninstall a specific tool from my current project.
The idea is that if ide uninstall is called without any additional parameter, then IDEasy gets uninstalled.
To avoid accidents, an interactive question should be asked so the user must confirm his choice to uninstall the product (or to cancel in case he just forgot to specify the «tool» to uninstall).

This should more or less revert what has been done during installation/setup:

  • remove ourselves from PATH on Windows
  • remove variable IDE_ROOT on Windows
  • remove entries we made to .bashrc
  • remove entries we made to .zshrc (if exists and IDEasy entries are present)
  • remove $IDE_ROOT/_ide/ except for $IDE_ROOT/_ide/software
  • unset ide or other "commands" (aliases/functions) from current bash (unload)
  • Log a message on interaction that IDEasy has been uninstalled but to avoid loss of data, the end-user should manually remove his $IDE_ROOT folder - but with care since all his projects are located there.

For .bashrc and .zshrc changes also see #779

@hohwille hohwille added the enhancement New feature or request label Nov 21, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Nov 21, 2024
@leonrohne27 leonrohne27 moved this from 🆕 New to 🏗 In progress in IDEasy board Nov 28, 2024
@leonrohne27 leonrohne27 moved this from 🏗 In progress to 🆕 New in IDEasy board Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants