uninstall
Uninstall an app or completely remove Mithrandir from the system.
Usage
sh
mithrandir uninstall [app]Arguments
| Argument | Description |
|---|---|
app | Optional. App name to uninstall. If omitted, runs the full system removal flow |
Per-App Uninstall
When called with an app name, stops and removes the container, companion apps, and optionally deletes the app's data directory. Regenerates the Caddyfile and Gatus config if applicable.
Full System Removal
When called without an app argument, runs a guided 10-step removal with per-step prompts. Each destructive step can be individually accepted or skipped, allowing you to keep Docker and apps running independently:
- Stop all apps — Stops all Mithrandir-managed Docker containers
- Remove systemd services — Disables and removes
homelab-backuptimer/service,mithrandir-uiservice, andmithrandir-tusdservice - Delete local backups — Removes the backup directory (skippable)
- Uninstall rclone — Removes rclone binary and configuration (skippable)
- Remove Tailscale — Logs the server out of your tailnet, removes the Tailscale firewall rules, and uninstalls the package (skippable, only shown when Tailscale is installed). If you are connected through Tailscale, your session will drop
- Remove app data — Deletes app data/config directories from the base directory (skippable)
- Remove Docker — Purges Docker Engine, containers, images, and volumes (skippable — choosing "no" keeps Docker and apps running independently)
- Remove log files — Cleans up
/var/log/homelab-backup.log, restore log, and UI update log - Remove CLI — Removes the
/usr/local/bin/mithrandirsymlink and update check cache - Remove configuration — Deletes the
.envfile (skippable)
Flags
| Flag | Description |
|---|---|
--yes, -y | Skip all prompts and remove everything (non-interactive) |
Notes
- Requires root privileges
- Per-app uninstall also removes companion apps
- Regenerates the Caddyfile after uninstalling an app (if HTTPS is enabled)
- The full removal flow is also available from the web dashboard under Settings > General > Danger Zone