MCPcopy Create free account
hub / github.com/cloudflare/cloudflared / delete_tunnel

Function delete_tunnel

component-tests/setup.py:67–72  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

65
66@retry(stop_max_attempt_number=MAX_RETRIES, wait_fixed=BACKOFF_SECS * 1000)
67def delete_tunnel(config):
68 credentials_path = config["credentials_file"]
69 delete_cmd = [config["cloudflared_binary"], "tunnel", "--origincert", config["origincert"], "delete",
70 "--credentials-file", credentials_path, "-f", config["tunnel"]]
71 LOGGER.info(f"Deleting tunnel with {delete_cmd}")
72 subprocess.run(delete_cmd, check=True)
73
74
75@retry(stop_max_attempt_number=MAX_RETRIES, wait_fixed=BACKOFF_SECS * 1000)

Callers 1

cleanupFunction · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…