This KB provides the steps to remove an imported domain from VCF as a troubleshooting step.
VMware Cloud Foundation 9.x
Follow the steps below to perform the workaround:
vcf and then elevate to root with su.curl -i -X DELETE http://localhost/inventory/extensions/vi/nsxtclusterdomains/<Domain ID from Step 1(c)>vcf and then elevate to root with su.curl -s -X DELETE http://localhost/inventory/extensions/vi/domains/<domain-id from Step 1(c)>https://<vCenter-FQDN>/mob and log in with vCenter administrator credentials. Content > ExtensionManager.Properties section, verify that extensionList ["com.vmware.sddcManager"] is present in the VALUE column.Methods section and click UnregisterExtension.com.vmware.sddcManager in the parameters value box.Invoke Method in the bottom right corner. Close the pop-up and refresh the ExtensionManager page to ensure it is removed.Remove hosts from the domain via API
TOKEN=$(curl -H 'Content-Type:application/json' https://localhost/v1/tokens -d '{"username" : "<SSO_USERNAME>","password":"<SSO_Password>"}' -k | jq -r '.accessToken')json file, using following command:curl -k -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -X GET https://localhost/v1/hosts?domainId=<Domain UUID from step 1(c)> 2>/dev/null | jq '[.elements[] | {id: .id}]' | tee hostids.json
curl -s -X DELETE http://localhost/inventory/extensions/decommission/hosts -H "Content-Type: application/json" -d @hostids.json