Deletes a private network route from an account. The CIDR in `ip_network_encoded` must be written in URL-encoded format. If no virtual_network_id is provided it will delete the route from the default vnet. If no tun_type is provided it will fetch the type from the tunnel_id or if that is missing it will assume Cloudflare Tunnel as default. If tunnel_id is provided it will delete the route from that tunnel, otherwise it will delete the route based on the vnet and tun_type.
/accounts/{account_identifier}/teamnet/routes/network/{ip_network_encoded}
delete
Tunnel route
tunnel-route-delete-a-tunnel-route-with-cidr
null null [
{
"in": "path",
"name": "ip_network_encoded",
"required": true,
"schema": {
"description": "IP/CIDR range in URL-encoded format",
"example": "172.16.0.0%2F16",
"type": "string"
}
},
{
"in": "path",
"name": "account_identifier",
"required": true,
"schema": {
"description": "Cloudflare account ID",
"example": "699d98642c564d2e855e9661899b7252",
"maxLength": 32,
"type": "string"
}
},
{
"in": "query",
"name": "virtual_network_id",
"schema": {
"description": "UUID of the virtual network.",
"example": "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
"maxLength": 36,
"readOnly": true,
"type": "string"
}
},
{
"in": "query",
"name": "tun_type",
"schema": {
"description": "The type of tunnel.",
"enum": [
"cfd_tunnel",
"warp_connector",
"ip_sec",
"gre",
"cni"
],
"example": "cfd_tunnel",
"type": "string"
}
},
{
"in": "query",
"name": "tunnel_id",
"schema": {
"description": "UUID of the tunnel.",
"example": "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
"maxLength": 36,
"readOnly": true,
"type": "string"
}
}
] null {
"200": {
"content": {
"application/json": {
"schema": {
"allOf": [
{
"properties": {
"errors": {
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
},
"messages": {
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
},
"result": {
"anyOf": [
{
"type": "object"
},
{
"items": {},
"type": "array"
},
{
"type": "string"
}
]
},
"success": {
"description": "Whether the API call was successful",
"enum": [
true
],
"example": true,
"type": "boolean"
}
},
"required": [
"success",
"errors",
"messages",
"result"
],
"type": "object"
},
{
"properties": {
"result": {
"properties": {
"comment": {
"description": "Optional remark describing the route.",
"example": "Example comment for this route.",
"type": "string"
},
"created_at": {
"description": "Timestamp of when the route was created."
},
"deleted_at": {
"description": "Timestamp of when the route was deleted. If `null`, the route has not been deleted.",
"example": "2021-01-25T18:22:34.317854Z",
"format": "date-time",
"nullable": true,
"readOnly": true,
"type": "string"
},
"id": {
"description": "UUID of the route.",
"example": "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
"maxLength": 36,
"readOnly": true,
"type": "string"
},
"network": {
"description": "The private IPv4 or IPv6 range connected by the route, in CIDR notation.",
"example": "172.16.0.0/16",
"type": "string"
},
"tunnel_id": {
"description": "UUID of the Cloudflare Tunnel serving the route."
},
"virtual_network_id": {
"description": "UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks are configured, the route is assigned to the default virtual network of the account."
}
},
"type": "object"
}
},
"type": "object"
}
]
}
}
},
"description": "Delete a tunnel route response"
},
"4XX": {
"content": {
"application/json": {
"schema": {
"allOf": [
{
"allOf": [
{
"properties": {
"errors": {
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
},
"messages": {
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
},
"result": {
"anyOf": [
{
"type": "object"
},
{
"items": {},
"type": "array"
},
{
"type": "string"
}
]
},
"success": {
"description": "Whether the API call was successful",
"enum": [
true
],
"example": true,
"type": "boolean"
}
},
"required": [
"success",
"errors",
"messages",
"result"
],
"type": "object"
},
{
"properties": {
"result": {
"properties": {
"comment": {
"description": "Optional remark describing the route.",
"example": "Example comment for this route.",
"type": "string"
},
"created_at": {
"description": "Timestamp of when the route was created."
},
"deleted_at": {
"description": "Timestamp of when the route was deleted. If `null`, the route has not been deleted.",
"example": "2021-01-25T18:22:34.317854Z",
"format": "date-time",
"nullable": true,
"readOnly": true,
"type": "string"
},
"id": {
"description": "UUID of the route.",
"example": "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
"maxLength": 36,
"readOnly": true,
"type": "string"
},
"network": {
"description": "The private IPv4 or IPv6 range connected by the route, in CIDR notation.",
"example": "172.16.0.0/16",
"type": "string"
},
"tunnel_id": {
"description": "UUID of the Cloudflare Tunnel serving the route."
},
"virtual_network_id": {
"description": "UUID of the Tunnel Virtual Network this route belongs to. If no virtual networks are configured, the route is assigned to the default virtual network of the account."
}
},
"type": "object"
}
},
"type": "object"
}
]
},
{
"properties": {
"errors": {
"allOf": [
{
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
}
],
"example": [
{
"code": 7003,
"message": "No route for the URI"
}
],
"minLength": 1
},
"messages": {
"allOf": [
{
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
}
],
"example": []
},
"result": {
"enum": [
null
],
"nullable": true,
"type": "object"
},
"success": {
"description": "Whether the API call was successful",
"enum": [
false
],
"example": false,
"type": "boolean"
}
},
"required": [
"success",
"errors",
"messages",
"result"
],
"type": "object"
}
]
}
}
},
"description": "Delete a tunnel route response failure"
}
} [
{
"api_email": [],
"api_key": []
}
]