From 897027d23822be37601e48397f6748ca421c0105 Mon Sep 17 00:00:00 2001 From: Juhyung Park Date: Mon, 4 Mar 2024 15:29:04 +0900 Subject: [PATCH] Add uninstallation procedure Signed-off-by: Juhyung Park --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 8b748fa..aa72420 100644 --- a/README.md +++ b/README.md @@ -135,3 +135,30 @@ Your Immich installation should be running at :3001 port. Immich will additionally use 3002 and 3003 ports, but those will only listen from localhost (127.0.0.1). Please add firewall rules and apply https proxy and secure your Immich instance. + +## Uninstallation + +``` bash +# Remove Immich systemd services +for i in immich*.service; do + sudo systemctl stop $i + sudo systemctl disable $i +done +sudo rm /etc/systemd/system/immich*.service +sudo systemctl daemon-reload + +# Remove Immich files +rm -rf /var/lib/immich + +# Delete immich user +deluser immich + +# Remove Immich DB +sudo -u postgres psql +postgres=# drop user immich; +postgres=# drop database immich; +postgres=# \q + +# Optionally remove dependencies +# Review /var/log/apt/history.log and remove packages you've installed +```