There's a couple ways to remove a domain controller.
1- On the domain controller to be removed; remove the active directory domain services from Server Manager Add / Remove roles.
2- If the domain controller is already powered off or has failed then we need to remove the remnants of old one from active directory.
Clean up Active Directory Domain Controller server metadata
Step-By-Step: Manually Removing A Domain Controller Server
--please don't forget to upvote
and Accept as answer
if the reply is helpful--