Uninstall

This section covers the steps required to uninstall Perforce TeamHub.

The uninstall process removes TeamHub and the installation directories from your system. Some information is left on your system and you need to manually clean up once the uninstall process has completed.

Before you begin

Uninstall Perforce TeamHub Extensions

The extensions must be removed from Perforce TeamHub before you uninstall Perforce TeamHub.

  1. Log in to the Perforce TeamHub administrator UI.

  2. Click Helix Extensions.

    The Configure Helix Core Server Extensions page opens.

  3. Click Remove on each of the extensions on the page.

    The Perforce TeamHub extensions are removed from the P4 Server.

  4. Do one of the following depending on your TeamHub deployment type:

Uninstall Standard deployments

Uninstall hth

RHEL and CentOS

To uninstall hth:

  1. Run the following command:
  2. sudo rpm -e hth

  3. Complete the uninstall. See Common uninstall steps.

Ubuntu

To uninstall hth:

  1. Run the following command:
  2. sudo apt-get remove hth

  3. Complete the uninstall. See Common uninstall steps.

Uninstall Enterprise or High availability deployments

Uninstall hth-db

RHEL and CentOS

To uninstall hth-db:

  1. Run the following command:
  2. sudo rpm -e hth-db

  3. Complete the uninstall. See Common uninstall steps.

Ubuntu

To uninstall hth-db:

  1. Run the following command:
  2. sudo apt-get remove hth-db

  3. Complete the uninstall. See Common uninstall steps.

Uninstall hth-web

RHEL and CentOS

To uninstall hth-web:

  1. Run the following command:
  2. sudo rpm -e hth-web

  3. Complete the uninstall. See Common uninstall steps.

Ubuntu

To uninstall hth-web:

  1. Run the following command:
  2. sudo apt-get remove hth-web

  3. Complete the uninstall. See Common uninstall steps.

Common uninstall steps

To complete the uninstall :

  1. Delete the data stored in /var/opt/hth (repositories, database, and configuration), run the following command:
  2. rm -rf /var/opt/hth

  3. Delete the hth user account, run the following command:
  4. sudo userdel hth

  5. Clean up your system. See Manual cleanup.

Manual cleanup

When you have completed the uninstall process, you need to clean up the following:

  • /usr/sbin/sshd: the symlink to the TeamHub OpenSSH binary at /opt/hth/embedded/sbin/sshd will be broken. You need to manually clean up the broken link and install the SSH service when the bundled OpenSSH was used for the original installation.
  • /etc/ssh/sshd_config: remove the AuthorizedKeysCommand used by TeamHub for key-based authorization.