#!/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'"