mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-14 03:30:25 +00:00
17 lines
588 B
Bash
Executable File
17 lines
588 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# ---------------------------------------------------------------------------
|
|
# Tear down the compose project and remove all volumes (including data).
|
|
# ---------------------------------------------------------------------------
|
|
|
|
echo "WARNING: This will stop all containers and delete all volumes (including persistent data)."
|
|
read -rp "Are you sure you want to continue? [y/N]: " answer
|
|
|
|
if [[ "${answer,,}" =~ ^y(es)?$ ]]; then
|
|
docker compose down -v
|
|
echo "All containers and volumes have been removed."
|
|
else
|
|
echo "Operation cancelled."
|
|
fi
|