open-webui-o / confirm_remove.sh
github-actions[bot]
GitHub deploy: 60e7e1d66da7f9d7c91fd38ab9673098dcf98e06
e17c2e1
raw
history blame
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