It has happened to all administrators to find themselves with an isolated domain controller.
In this case, after performing a dcpromo /forceremoval, all AD and DNS databases should be cleaned. For this purpose Microsoft gives the procedure that has been carried out.
For Windows Server 2003 :
For Windows Server 2008 R2 :