tencent cloud

Virtual Private Cloud

Release Notes and Announcements
Release Notes
Announcements
Tencent Cloud Network Overview
Product Introduction
Overview
Strengths
Use Cases
Concepts
Quota Limit
Service Regions and Service Providers
Purchase Guide
Billing Overview
Payment Overdue
Quick Start
Network Planning
VPC Connections
Building Up an IPv4 VPC
Operation Guide
Network Topology
Network performance dashboard
Virtual Private Cloud (VPC)
Subnets
Route Tables
Elastic IP
HAVIPs
Elastic Network Interface
Bandwidth Package
Network Connection
Security Management
Diagnostic Tools
Alarming and Monitoring
Practical Tutorial
View the Total Bandwidth for Single-Region Traffic-Based Billing
Migrating from the Classic Network to VPC
Best Practices of Security Group Change
Configuring CVM Instance as Public Gateway
Building HA Primary/Secondary Cluster with HAVIP + Keepalived
Hybrid Cloud Primary/Secondary Communication (DC and VPN)
Hybrid Cloud Primary/Secondary Communication (CCN and VPN)
CVM Access to Internet Through EIP
Troubleshooting
VPCs or Subnets Cannot Be Deleted
Network Disconnection After Connecting Two VPCs over CCN
Failed to Ping CVMs in the Same VPC
API Documentation
History
Introduction
API Category
Making API Requests
VPC APIs
Route Table APIs
Elastic Public IP APIs
Elastic IPv6 APIs
Highly Available Virtual IP APIs
ENI APIs
Bandwidth Package APIs
NAT Gateway APIs
Direct Connect Gateway APIs
Cloud Connect Network APIs
Network ACL APIs
Network Parameter Template APIs
Network Detection-Related APIs
Flow Log APIs
Gateway Traffic Monitor APIs
Private Link APIs
Traffic Mirroring APIs
Other APIs
Subnet APIs
VPN Gateway APIs
Security Group APIs
Snapshot Policy APIs
Error Codes
Data Types
FAQs
General
Connection
Security
Contact Us
Glossary

VPCs or Subnets Cannot Be Deleted

PDF
フォーカスモード
フォントサイズ
最終更新日: 2025-11-24 16:42:14

Error Description

VPCs or subnets cannot be deleted.

Common Causes

VPC: A VPC can only be deleted when there is no resource associated other than empty subnets (IPs in the subnet are not used), routing tables, and network ACLs.
Subnet: A subnet can only be deleted when it’s not associated with any resource.
Note:
Resources that can be associated with the subnet include CVM, private network CLB, ENI, HAVIP, SCF, TKE, and TencentDB (for MySQL, Redis, TDSQL, etc.).
According to the rules above, VPCs and subnets cannot be deleted in the following cases:
There are cloud resources that have not been completely deleted. For example, after a database is terminated, it is in isolated status, and the database resources in this status actually are not completely released and continue to use the IP resources of the VPC. Therefore, the VPC or subnet cannot be deleted immediately.
Some resources can not be deleted in the VPC console.

Troubleshooting Procedure

1. Log in to the VPC console.
2. Click Delete on the right of the VPC to be deleted, and check the associated resources.
Note:
Note that public network CLB instances don’t use VPC resources.
3. Click the VPC ID to enter the details page, click the corresponding cloud resource to enter its details page, and release it.
If the direction to a resource fails, search for the corresponding product in the Tencent Cloud console, go to the resource's console, search for the resource under the VPC ID, and release it.
A TencentDB instance is put into the Isolated status for a certain period after being terminated, during which the resources are not actually released. You need to click Eliminate Now or wait until the instance is automatically eliminated before you can delete the VPC or subnet.
Note:
The Eliminate Now in TencentDB is an async operation. It may take some time for the returning of operation result. You need to wait till the TencentDB instance is completely released.
4. After the resources are completely released, delete the VPC and subnet again.
If the problem persists, contact us for assistance.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック