Delete a VPC

Delete a single VPC and all of its Subnets.

  • The User accessing this operation must have read_write grants to the VPC.
  • A successful request triggers a vpc_delete event and subnet_delete events for each deleted VPC Subnet.
  • All of the VPC's subnets need to be eligible for deletion. You need to delete all network interfaces each subnet is assigned to. If those interfaces are active, you need to shut down the associated Linodes first. If any subnet can't be deleted, it prevents the VPC and its subnets from being deleted.
  • You can't delete a VPC if a NodeBalancer or a managed database is attached to one of its subnets.

​​​​​

linode-cli vpcs delete $vpcId

<https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli>
vpc:read_write

<https://techdocs.akamai.com/linode-api/reference/get-started#oauth>
Language
Credentials
Click Try It! to start a request and see the response here!