When you are removing a child domain with NTDSUTIL you will receive the following error:
DsRemoveDsDomainW error 0x2015 (The directory service can perform the requested operation only on a leaf object.)
If this happen, follow below mentioned steps. When you are done you can follow this article to remove child domain.
Open PowerShell with elevated privileges and execute the following commands in sequence.