Forcing the removal of active directory from a domain controller

You can force the removal of AD from a machine by running:

dcpromo /forceremoval

It’s not the best way to do it of course, but if all else fails you can run this.