diff --git a/README.md b/README.md index cd28d19..3b66719 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,19 @@ Create an account: pdsadmin account create ``` +## Teardown + +Run on the server to remove everything, use with caution: + +```bash +sudo docker compose -f /pds/compose.yaml down +sudo rm -rf /pds +sudo systemctl stop pds 2>/dev/null +sudo systemctl disable pds 2>/dev/null +sudo rm -f /etc/systemd/system/pds.service /usr/local/bin/pdsadmin +sudo systemctl daemon-reload +``` + ## Notes - `pds.env` is Ansible-managed. Secrets (JWT, admin password, PLC rotation key) are generated by the installer on first run, then read and preserved by Ansible on subsequent runs. To change config like S3 or SMTP, update `vars/main.yml` and re-run the playbook.