Home / Servers / Hetzner Cloud API / delete_network_subnet
Delete a subnet from a Network
An MCP tool from the Hetzner Cloud API server, hosted on mcp.hjlabs.in.
Delete a subnet from a Network Deletes a single subnet entry from a Network. Subnets containing attached resources can not be deleted, they must be detached beforehand. If a change is currently being performed on this Network, a… [POST /networks/{id}/actions/delete_subnet]
Name on the gateway: hetzner_api__delete_network_subnet · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
id required | integer | ID of the Network. |
ip_range required | string | IP range in CIDR block notation of the subnet to delete. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "hetzner_api__delete_network_subnet",
"arguments": {
"id": 0,
"ip_range": "…"
}
}Or connect the Hetzner Cloud API server directly, which lists 178 tools including this one:
claude mcp add --transport http hj-hetzner-api https://mcp.hjlabs.in/mcp/hetzner-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the delete a subnet from a network tool with id set to ….