Update versions.json
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 35s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 35s
This commit is contained in:
26
cloudflare-tunnel/destroy.sh
Executable file
26
cloudflare-tunnel/destroy.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/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'"
|
Reference in New Issue
Block a user