--- title: "Delete a subnet" description: "Delete a subnet you no longer need from a VPC in MyAccount, once no resource uses any of its addresses." content_type: "how-to" product: "vpc" platform: "MyAccount" url: "/myaccount/vpc/how-to/delete-a-subnet/" topic: ["subnets"] --- # Delete a subnet Deleting a subnet frees its block of addresses in the VPC, so you can use the range again or delete the VPC itself. A subnet can go once no resource holds an address in it. ## Before you begin - Nothing is using the subnet's addresses. Select the VPC in **Network > VPC**, open its **Subnet** tab, and check that the subnet's **Used/Total IPs** starts with `0`. If it does not, move or remove the resources first: for a node, detach the VPC as [Attach a node to a VPC](/myaccount/node/how-to/attach-a-node-to-a-vpc/) describes, or delete the node. A subnet still in use is refused with "Subnet cannot be deleted as it has active IPs assigned.", and [Troubleshooting VPC](/myaccount/vpc/troubleshooting/vpc/#subnet-cannot-be-deleted-as-it-has-active-ips-assigned) shows how to find what holds it. ## Delete the subnet 1. On the VPC's **Subnet** tab, open the subnet's actions menu and choose **Delete Subnet**. 2. In **Delete Subnet**, check the name and click **Delete**. The subnet leaves the **Subnet** tab, and its block is free again. To remove the whole VPC next, see [Delete a VPC](/myaccount/vpc/how-to/delete-a-vpc/).