delete
https://api.linode.com//vpcs//subnets/
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
- Permissions:
-
OAuth scopes. Your user needs these scopes assigned. Learn more.
- Scopes:
vpc:read_write
- Scopes:
CLI
linode-cli vpcs subnet-delete $vpcId $vpcSubnetId