How to remove a server in the right way from Univention directory
You want to decomission one of the UCS servers running in your UCS domain.
Note: A UCS master server can not be decomissioned. Only backup, slave and member roles can be decomissioned.
Power off your server to be decommissioned.
Use the build-in script to remove all entries from OpenLDAP directory and Samba/AD.