You are attempting to delete a Domain Controller without running the removal wizard. To properly remove the Domain Controller ...

You are attempting to delete a Domain Controller without running the removal wizard. To properly remove the Domain Controller from the domain, you should run the Remove Roles and Features Wizard in Server Manager, or the Active Directory Domain Services Installation Wizard (DCPromo) for Windows Server 2008 R2 or earlier.