Issue the following command into powershell in admin mode:
Uninstall-ADDSDomainController -DemoteOperationMasterRole -RemoveApplicationPartition