Uninstall the Conjur CLI

This topic describes how to uninstall the Conjur CLI.

  1. Log out of the Conjur CLI.

  2. Remove the conjur executable.

  3. Remove the path to the folder containing the conjur executable from your system's PATH environment variable.

  1. Log out of the Conjur CLI.

  2. Remove the conjur executable:

    • If the executable is in /usr/local/bin, remove it by running rm /usr/local/bin/conjur.

    • If the executable was added to your path in your system's RC file, remove it by editing your system's RC file.

      For example, if the executable was added to your machine's default bashrc, edit the  .bashrc file:

      1. Remove the line that saves the Conjur CLI to your system's path.Change:

         

        PATH="/home/<user>/conjur-cli-<RHEL version>:<other-system-paths>:$PATH"

        to

         

        PATH="<other-system-paths>:$PATH"

      2. Save and close the file.
  1. Log out of the Conjur CLI.

  2. Remove the conjur executable:

    • If the executable is in /usr/local/bin, remove it by running rm /usr/local/bin/conjur.

    • If the executable was added to your path in your system's RC file, remove it by editing your system's RC file.

      For example, if the executable was added to your machine's default bashrc, edit the  .bashrc or .zshrc file:

      1. Remove the line that saves the Conjur CLI to your system's path.Change:

         

        PATH="/home/<user>/conjur-cli-<version>:<other-system-paths>:$PATH"

        to

         

        PATH="<other-system-paths>:$PATH"

      2. Save and close the file.