title | description |
---|---|
Uninstall Teleport |
How to remove Teleport from your system |
This guide explains how to uninstall Teleport completely including binaries, configurations and data.
- A system with Teleport installed.
If you are running Teleport in Kubernetes, you should uninstall the Helm chart release instead:
# Example: uninstall the Helm release named 'teleport-kube-agent' in the 'teleport' namespace
$ helm uninstall --namespace teleport teleport-kube-agent
If you are running Teleport in Docker, you should stop the Teleport Docker container:
# Example: Stop the Docker container named 'teleport'
$ docker stop teleport
```code
$ sudo systemctl stop teleport
$ sudo systemctl disable teleport
```
If these `systemd` commands do not work, you can "kill" all the running Teleport processes instead:
```code
$ sudo killall teleport
```
Instruct `launchd` to stop the Teleport process, and disable it from automatically starting:
```code
$ sudo launchctl unload -w /Library/LaunchDaemons/com.goteleport.teleport.plist
$ sudo rm -f /Library/LaunchDaemons/com.goteleport.teleport.plist
```
If these commands do not work, you can "kill" all the running Teleport processes instead:
```code
$ sudo killall teleport
```
There are currently no long-running Teleport processes on Windows machines.
Follow the steps for your operating system to remove Teleport binaries.
Follow the instructions for your Linux distribution:
Uninstall the Teleport binary using APT:
$ sudo apt-get -y remove teleport-ent
For Teleport Community Edition, use the following command:
$ sudo apt-get -y remove teleport
Uninstall the Teleport APT repo:
$ sudo rm -f /etc/apt/sources.list.d/teleport.list
# Use "teleport" instead of "teleport-ent" for Teleport Community Edition
$ sudo dpkg -r teleport-ent
Uninstall the Teleport binary using YUM:
# Change the package name to "teleport" for Teleport Community Edition
$ sudo yum -y remove teleport-ent
# Optional: Use DNF on newer distributions
# $ sudo dnf -y remove teleport-ent
Uninstall the Teleport YUM repo:
$ sudo rm -f /etc/yum.repos.d/teleport.repo
# Use "teleport" for Teleport Community Edition
$ sudo rpm -e teleport-ent
Uninstall the Teleport binary using zypper:
# Change the package name to "teleport" for Teleport Community Edition
$ sudo zypper -y remove teleport-ent
Uninstall the Teleport zypper repo:
$ sudo zypper removerepo teleport
Remove the Teleport binaries from the machine:
$ sudo rm -f /usr/local/bin/tbot
$ sudo rm -f /usr/local/bin/tctl
$ sudo rm -f /usr/local/bin/teleport
$ sudo rm -f /usr/local/bin/tsh
$ sudo rm -f /usr/local/bin/fdpass-teleport
Remove the Teleport binaries and links to Teleport software from the machine:
$ sudo rm -f /usr/local/bin/tbot
$ sudo rm -f /usr/local/bin/tctl
$ sudo rm -f /usr/local/bin/teleport
$ sudo rm -f /usr/local/bin/tsh
$ sudo rm -f /usr/local/bin/fdpass-teleport
You may have Teleport software in the /Applications
folder if you:
- Installed from a macOS tarball for v17+ that includes
tsh.app
andtctl.app
- Installed the macOS
tsh
client-only package for v16 or older versions. - Installed Teleport Connect for macOS
You can remove those with these commands:
$ sudo rm -rf /Applications/tsh.app
$ sudo rm -rf /Applications/tctl.app
$ sudo rm -rf /Applications/Teleport\ Connect.app
Remove the tsh.exe
and tctl.exe
binaries from the machine:
$ del C:\Path\To\tsh.exe
$ del C:\Path\To\tctl.exe
(!docs/pages/includes/uninstall-teleport-connect-windows.mdx!)
(!docs/pages/includes/uninstall-windows-auth.mdx!)
These are the default paths to the Teleport config files and data directory. If you have changed these from the defaults on your system, substitute those paths here.Remove the Teleport config file:
```code
$ sudo rm -f /etc/teleport.yaml
# Optional: Also remove the Machine ID config file, if you used it
# $ sudo rm -f /etc/tbot.yaml
```
Remove the Teleport data directory:
```code
$ sudo rm -rf /var/lib/teleport
```
Optionally, also remove the global config file and local user data directory for `tsh`:
```code
$ sudo rm -f /etc/tsh.yaml
$ rm -rf ~/.tsh
```
Remove the Teleport config file:
```code
$ sudo rm -f /etc/teleport.yaml
# Optional: Also remove the Machine ID config file, if you used it
# $ sudo rm -f /etc/tbot.yaml
```
Remove the Teleport data directory:
```code
$ sudo rm -rf /var/lib/teleport
```
Optionally, also remove:
- the global config file and local user data directory for `tsh`
- the local user data directory for Teleport Connect
```code
# tsh
$ sudo rm -f /etc/tsh.yaml
$ rm -rf ~/.tsh
# Teleport Connect
$ rm -rf ~/Library/Application\ Support/Teleport\ Connect
```
Remove the local user data directory for tsh
:
$ rmdir /s /q %USERPROFILE%\.tsh
Optionally, also remove the local user data directory for Teleport Connect:
$ rmdir /s /q "%APPDATA%\Teleport Connect"
Teleport is now removed from your system.
Any Teleport services will stop appearing in your Teleport Web UI or the output of tsh ls
once their last heartbeat has timed out. This usually occurs within 10-15 minutes of stopping the Teleport process.