Hello @Mark-1873 ,
Thank you so much for posting here.
Agree with Dave, we could follow the below article to remove orphaned domains from Active Directory. When following the steps, it could list all the domains including the parent domain, child domain and domain tree. For example:
There could be problems in step 13 with this kind of error:
“DsRemoveDsDomainW error 0x2015(The directory service can perform the requested operation only on a leaf object.)”
If you were to get this error it means that there are still objects in this domain (naming context) and to remove them you can always do it by ntdsutil commands.
For more information, we could refer to:
https://www.itxperience.net/en/come-rimuovere-un-sottodominio-morto-senza-domain-controller-da-active-directory/
Hope the information is helpful. We could kindly have a check whether it could solve the issue. If we still have any concerns or questions, or this issue is a little urgent, as suggested, we could contact Microsoft Customer Services and Support to get an efficient solution.
Thank you so much for your understanding and support.
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Best regards,
Hannah Xiong
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.