#!/usr/bin/env bash
set -euo pipefail

echo "== RemnaWave Panel: uninstall/stop =="
docker compose down --remove-orphans

read -r -p "Remove built Docker images too? (y/N): " remove_images
if [[ "${remove_images:-N}" =~ ^[Yy]$ ]]; then
  docker compose down --rmi local --remove-orphans
fi

echo "Panel removed."
