open-webui / confirm_remove.sh
github-actions[bot]
GitHub deploy: dd933e406f09a0806fa3a9a6e2dca1f9dafff5e4
b7a2d1a
Raw History Blame Contribute Delete
356 Bytes
#!/bin/bash
echo "Warning: This will remove all containers and volumes, including persistent data. Do you want to continue? [Y/N]"
read ans
if [ "$ans" == "Y" ] || [ "$ans" == "y" ]; then
command docker-compose 2>/dev/null
if [ "$?" == "0" ]; then
docker-compose down -v
else
docker compose down -v
fi
else
echo "Operation cancelled."
fi