Univention Bugzilla – Dependency tree for Bug 40489
Uninstalling "Active Directory compatible Domain controller" should also demote/purge the DC