If PCG undeployment fails, you have to manually delete all the NSX Cloud-created entities in NSX Manager as well as in the public cloud.
- In your public cloud:
- Terminate all PCGs in the Transit VPC/VNet.
- Move all your workload VMs to a security group not created by NSX Cloud.
- Delete the NSX Cloud-created security groups in the public cloud as listed here: Auto-created Public Cloud Configurations.
- For Microsoft Azure, also delete the NSX Cloud-created Resource Group named like nsx-gw-<vnet ID>-rg.
- Resync your public cloud inventory in CSM.
- Delete the auto-created entities with the VPC/VNet ID in NSX Manager as listed here: Auto-created NSX-T Logical Entities.
Note: Do not delete the global entities that are auto-created. Only delete the ones that have the VPC/VNet ID in their name.