Files
dropshell-templates/cloudflare-tunnel/destroy.sh
Your Name 8e6b00bfee
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 35s
Update versions.json
2025-09-06 14:17:56 +12:00

26 lines
794 B
Bash
Executable File

#!/bin/bash
# shellcheck disable=SC1091
source "${AGENT_PATH}/common.sh"
_check_required_env_vars "CONTAINER_NAME"
echo "WARNING: This will completely remove the Cloudflare Tunnel container."
echo "The tunnel configuration in Cloudflare dashboard will remain."
echo ""
read -p "Are you sure you want to destroy the Cloudflare Tunnel? (yes/no): " confirm
if [ "$confirm" != "yes" ]; then
echo "Destruction cancelled"
exit 0
fi
# Stop and remove the container
bash ./uninstall.sh
echo ""
echo "Cloudflare Tunnel has been destroyed."
echo ""
echo "To remove the tunnel from Cloudflare completely:"
echo "1. Go to: https://one.dash.cloudflare.com/"
echo "2. Navigate to: Zero Trust -> Access -> Tunnels"
echo "3. Find your tunnel and click the three dots menu"
echo "4. Select 'Delete'"