Search + K

Command Palette

Search for a command to run...

Sign In

Clean up Cloudflare Tunnel connections

DELETE /accounts/{account_id}/cfd_tunnel/{tunnel_id}/connections
Copy endpoint
https://api.cloudflare.com/client/v4

Removes a connection (aka Cloudflare Tunnel Connector) from a Cloudflare Tunnel independently of its current state. If no connector id (client_id) is provided all connectors will be removed. We recommend running this command after rotating tokens.

Parameters

path Path Parameters

Name Type
account_id required
type TunnelAccountId = string
tunnel_id required
type TunnelTunnelId = string

query Query Parameters

Name Type
client_id
type TunnelClientId = string

Request Body

application/json required
{}

Responses

200 application/json

Clean up Cloudflare Tunnel connections response

type TunnelEmptyResponse = interface TunnelApiResponseCommon {
errors: TunnelMessages
type TunnelMessages = { code: number;message: string; }[]
;
messages: TunnelMessages
type TunnelMessages = { code: number;message: string; }[]
;
result: {} | unknown[] | string;
success: true;
}
& { result?: null; }

Client Errors

4XX application/json

Clean up Cloudflare Tunnel connections response failure

type TunnelEmptyResponse = interface TunnelApiResponseCommon {
errors: TunnelMessages
type TunnelMessages = { code: number;message: string; }[]
;
messages: TunnelMessages
type TunnelMessages = { code: number;message: string; }[]
;
result: {} | unknown[] | string;
success: true;
}
& { result?: null; }
& interface TunnelApiResponseCommonFailure {
errors: TunnelMessages
type TunnelMessages = { code: number;message: string; }[]
;
messages: TunnelMessages
type TunnelMessages = { code: number;message: string; }[]
;
result: null;
success: false;
}