open-webui / confirm_remove.sh
github-actions[bot]
GitHub deploy: a68e717dcf4e93ea49e9c5128c8dcd885326b6ae
da2a7ab
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