Skip to content

MacOS: Steps for Uninstalling Swiftly #281

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

Closed
louisunlimited opened this issue Mar 31, 2025 · 5 comments · Fixed by #338
Closed

MacOS: Steps for Uninstalling Swiftly #281

louisunlimited opened this issue Mar 31, 2025 · 5 comments · Fixed by #338

Comments

@louisunlimited
Copy link
Contributor

Currently, I can't find any uninstall steps for swiftly on MacOS apart from the Upgrade section in README, but I guess this was initially written for linux users? Swiftly does not install under ~/.local/share/swiftly on MacOS, should there be better documentations on how to safely uninstall Swiftly?

@louisunlimited louisunlimited changed the title Uninstalling Steps Update Steps for Uninstalling Swiftly Mar 31, 2025
@louisunlimited louisunlimited changed the title Steps for Uninstalling Swiftly MacOS: Steps for Uninstalling Swiftly Mar 31, 2025
@cmcgee1024
Copy link
Member

There is also issue #84 for add a self-uninstall option to swiftly, which would automate the process.

For macOS, the uninstallation is approximately these steps:

  • Remove all installed toolchains (optional) with swiftly uninstall all
  • Remove any "Added by swiftly" sections in ~/.zprofile, ~/.profile, or ~/.bash_profile files
  • Remove the swiftly home and bin directories, default is ~/.swiftpm
  • Restart your shell

@louisunlimited
Copy link
Contributor Author

louisunlimited commented Mar 31, 2025

There is also issue #84 for add a self-uninstall option to swiftly, which would automate the process.

For macOS, the uninstallation is approximately these steps:

  • Remove all installed toolchains (optional) with swiftly uninstall all
  • Remove any "Added by swiftly" sections in ~/.zprofile, ~/.profile, or ~/.bash_profile files
  • Remove the swiftly home and bin directories, default is ~/.swiftpm
  • Restart your shell

Hi @cmcgee1024 thank you! Now going towards a 1.0 release have we come to a consensus on what the desired procedure would be? Should we provide an uninstall script like Homebrew does or should we have something like swiftly self uninstall like rustup does. I personally don't mind having uninstallation scripts but was thinking letting the users decide which specific folder to remove was not very straight forward, specially for those new to swift and the ecosystem, and having a packaged command would be a lot more beneficial. Also I'm willing to take on this if no one's working on it already!

@cmcgee1024
Copy link
Member

In the near term, the manual uninstall procedure should be documented more generally in the README. The longer term plan is #84, which automates this.

@louisunlimited
Copy link
Contributor Author

In the near term, the manual uninstall procedure should be documented more generally in the README. The longer term plan is #84, which automates this.

Sounds good! Do you mind if I start with a small PR adding deleting instructions to the README?

@cmcgee1024
Copy link
Member

Do you mind if I start with a small PR adding deleting instructions to the README?

Not at all. Contributions are welcome for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants