Server - AD cleanup procedure

In ad infrastructure it can happen that a DC death suddenly and there is any possibility to recover it other than format.

In this specific case, later, you need to cleanup AD metadata to delete any pointing to that DC.

I take note about procedure saving some articles that I used to find workflow:

Metadata Cleanup Using NTDSUTIL in Windows Server 2008 R2

Clean Up Server Metadata