You can undeploy PCG from a VPC, but remember to delete all logical entities associated with it first.
To undeploy PCG, click from the VPC. The default entities created by NSX Cloud are removed automatically when a PCG is undeployed.
Delete all the logical entities you created in NSX Manager before undeploying the gateway. Refer to the list below to find your entities to delete:
AWS: DNS entry in route 53
DDI: DHCP profile
Routing: SNAT rule
Routing: static Router
Routing: Logical Router Port
Routing: Logical Router
Fabric-Nodes: Edge Cluster
Fabric-Nodes: Transport Nodes
Switching: Logical Switch ports
Switching: Logical Switches
Fabric-Transport Zones: Transport Zones