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.
- Restart the CSM Service. Log in to the CSM appliance CLI and run the restart service cloud-service-manager command.
- 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.
Important: If the PCG undeployment fails even after performing the steps mentioned in this topic, a database cleanup for PCG may be required. The database cleanup needs engineering assistance. If you want to cleanup the PCG database, contact the VMware support team.