Skip to content

Add self-uninstall command #84

Open
@patrickfreed

Description

@patrickfreed
Contributor

We should make it easy to cleanly uninstall swiftly in case a user no longer needs it on their system.

Activity

amirsaam

amirsaam commented on Jun 5, 2024

@amirsaam

while that pr is merged but still there is no way to uninstall swiftly itself, how can we uninstall it completely?

patrickfreed

patrickfreed commented on Jun 8, 2024

@patrickfreed
ContributorAuthor

I think the best way right now would be the following:

$ swiftly uninstall all
$ rm -r ~/.local/share/swiftly
$ rm ~/.local/bin/swiftly

This is assuming you've installed to the default location.
You may also want to delete any swiftly-specific lines from your .profile, .bash_profile, .bash_login, or .zprofile, if there are any in any of those files.

carlynorama

carlynorama commented on Jul 21, 2024

@carlynorama

Note, when going from 0.2.0 -> 0.3.0 one may get into trouble if one hasn't uninstalled all / removed all the symlinks

find ~/.local/bin/ -maxdepth 1 -type l 
find ~/.local/bin/ -maxdepth 1 -type l -delete
linked a pull request that will close this issue on May 5, 2025
tkrajacic

tkrajacic commented on Jun 5, 2025

@tkrajacic

Is this being worked on? It seems like a vital feature.

plemarquand

plemarquand commented on Jun 5, 2025

@plemarquand
Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @carlynorama@plemarquand@tkrajacic@patrickfreed@amirsaam

      Issue actions

        Add `self-uninstall` command · Issue #84 · swiftlang/swiftly