website/src/app/kb/administer/uninstall/readme.mdx
import SupportOptions from "@/components/SupportOptions"; import { TabsGroup, TabsItem } from "@/components/Tabs"; import Alert from "@/components/DocsAlert";
This guide covers how to uninstall the Firezone Gateway from your server(s).
Use the appropriate instructions below to stop and remove the Gateway depending on how it was installed:
<TabsGroup> <TabsItem title="Docker" active>Stop the container:
docker stop firezone-gateway
Remove the container and its volumes:
docker rm --volumes firezone-gateway
Remove the image:
docker rmi ghcr.io/firezone/gateway:1
Remove the cache directory:
sudo rm -rf /var/lib/firezone
Stop the service:
sudo systemctl stop firezone-gateway
Disable the service:
sudo systemctl disable firezone-gateway
Remove all relevant files:
sudo rm -rf /etc/systemd/system/firezone-gateway.service \
/usr/local/bin/firezone-gateway \
/usr/local/bin/firezone-gateway-init \
/var/lib/firezone
If you want to remove the Gateway's data from the admin portal as well, navigate
to the Site where the Gateway was running, click (see all) next to the
Online Gateways header, and then delete the offline Gateway corresponding to
the Gateway you just uninstalled.