> ## Documentation Index
> Fetch the complete documentation index at: https://docs.catops.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Uninstall

> Remove CatOps Hub from your server

## Quick Uninstall

```bash theme={null}
curl -fsSL https://get.catops.app/hub.sh | sudo sh -s -- -u
```

This will:

1. Deactivate your license (so you can use it elsewhere)
2. Stop the service
3. Remove all files and data
4. Remove the catops user

<Warning>
  This deletes all metrics data permanently.
</Warning>

## Backup Before Uninstalling

To keep your data:

```bash theme={null}
sudo cp -r /opt/catops/pb_data ~/catops-backup/
```

## Manual Uninstall

If you prefer to uninstall manually:

```bash theme={null}
# Deactivate license first (frees up your activation slot)
sudo -u catops /opt/catops/catops-hub deactivate

# Stop service
sudo systemctl stop catops-hub
sudo systemctl disable catops-hub

# Remove systemd files
sudo rm -f /etc/systemd/system/catops-hub.service
sudo rm -f /etc/systemd/system/catops-hub-update.service
sudo rm -f /etc/systemd/system/catops-hub-update.timer
sudo systemctl daemon-reload

# Remove files
sudo rm -rf /opt/catops
sudo rm -rf /home/catops/.catops

# Remove user (optional)
sudo userdel -r catops
```

## Reinstalling

After uninstalling, reinstall anytime:

```bash theme={null}
curl -fsSL https://get.catops.app/hub.sh | sudo sh
```

Your license key is still valid - just activate it again.
