Delete a VPC subnet

Delete a single VPC subnet. A successful request triggers a subnet_delete event.

📘

You need to delete all network interfaces, managed databases and NodeBalancers that this subnet is assigned to before you can delete it. If interfaces are active, the associated Linode needs to be shut down before they can be removed. For more information see:

Permissions and scopes

To call this operation, you need permissions, based on the model you're using:

  • Identity and access permissions. Your user needs a role with these permissions. Learn more.

    • Permissions: delete_vpc_subnet
  • OAuth scopes. Your user needs these scopes assigned. Learn more.

    • Scopes: vpc:read_write

CLI

linode-cli vpcs subnet-delete $vpcId $vpcSubnetId

Learn more

Path Params
string
enum
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

Allowed:
integer
required

The id of the VPC.

integer
required

The id of the VPC Subnet.

Responses

Language
Credentials
LoadingLoading…
Response
Choose an example:
application/json