content/telegraf/controller/install/uninstall.md
Uninstall Telegraf Controller and remove all files associated with the application. This process depends on your operating system and installation method.
{{< tabs-wrapper >}} {{% tabs %}} Linux macOS Windows {{% /tabs %}} {{% tab-content %}}
<!-------------------------- BEGIN LINUX -------------------------->To fully uninstall {{% product-name %}} from Linux:
Stop {{% product-name %}}:
If running the application in place, stop the telegraf_controller process.
If you installed {{% product-name %}} as a systemd service stop and disable the service:
sudo systemctl stop telegraf-controller
sudo systemctl disable telegraf-controller
Remove all files associated with {{% product-name %}}:
# Remove the telegraf_controller executable
sudo rm -rf /opt/telegraf-controller
# Remove the telegraf_controller shared directory, which includes the
# SQLite database if using SQLite
rm -rf ~/.local/share/telegraf_controller
# Remove the service file if you installed Telegraf Controller as a service
sudo rm /etc/systemd/system/telegraf-controller.service
If using PostgreSQL, delete the telegraf_controller database from your
PostgreSQL instance:
DROP DATABASE telegraf_controller;
{{% /tab-content %}} {{% tab-content %}}
<!-------------------------- BEGIN MACOS -------------------------->To fully uninstall {{% product-name %}} from macOS:
Stop {{% product-name %}}:
If running the application in place, stop the telegraf_controller process.
If you installed {{% product-name %}} as a macOS LaunchDaemon and are running it as a service, stop the service:
sudo launchctl unload /Library/LaunchDaemons/com.influxdata.telegraf-controller.plist
Remove all files associated with {{% product-name %}}:
# Remove the telegraf_controller executable
sudo rm /usr/local/bin/telegraf_controller
# Remove the telegraf_controller application directory, which includes the
# SQLite database if using SQLite
rm -rf ~/Library/Application\ Support/telegraf_controller
# Remove the plist file if you installed Telegraf Controller as a LaunchDaemon
sudo rm /Library/LaunchDaemons/com.influxdata.telegraf-controller.plist
If using PostgreSQL, delete the telegraf_controller database from your
PostgreSQL instance:
DROP DATABASE telegraf_controller;
{{% /tab-content %}} {{% tab-content %}}
<!-------------------------- BEGIN WINDOWS -------------------------->To fully uninstall {{% product-name %}} from Windows:
Stop {{% product-name %}}:
If running the application in place, stop the telegraf_controller process.
If you installed {{% product-name %}} as a service, stop and remove the service:
nssm stop TelegrafController
nssm remove TelegrafController confirm
Remove all files associated with {{% product-name %}}:
# Remove the telegraf_controller executable and other related files,
# including the SQLite database if using SQLite
Remove-Item -Path "$env:LOCALAPPDATA\telegraf_controller" -Recurse
Remove-Item -Path "C:\Program Files\TelegrafController" -Recurse
If using PostgreSQL, delete the telegraf_controller database from your
PostgreSQL instance:
DROP DATABASE telegraf_controller;
{{% /tab-content %}} {{< /tabs-wrapper >}}