Question: how to demote last domain controller?
Answer: Demote Domain Controller using Server Manager Open Server Manager, click Manage and then Remove Roles and Features. In the Before You Begin section, click Next to continue. In the Server Selection section, select DC and click Next to continue. Under Server Roles, uncheck the Active Directory Domain Services role.