Clean up Cloudflare Tunnel connections
DELETE
/accounts/{account_id}/cfd_tunnel/{tunnel_id}/connections 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 ;
messages:TunnelMessages ;
result: {} | unknown[] | string;
success: true;
} & { result?: null; }
errors:
messages:
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 ;
messages:TunnelMessages ;
result: {} | unknown[] | string;
success: true;
} & { result?: null; } & interface TunnelApiResponseCommonFailure {
errors:TunnelMessages ;
messages:TunnelMessages ;
result: null;
success: false;
}
errors:
messages:
result: {} | unknown[] | string;
success: true;
} & { result?: null; } & interface TunnelApiResponseCommonFailure {
errors:
messages:
result: null;
success: false;
}