open-webui / confirm_remove.sh
github-actions[bot]
GitHub deploy: 7bc88eb00d03728537d6153dfc14a3c23e6b7587
48ae63b
#!/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