Deleting an Application Directory Partition
An application directory partition is deleted by deleting the crossRef object that represents the application directory partition. When the deletion of the crossRef object replicates to a domain controller that has a replica of the application directory partition, the KCC will delete the local replica of the application directory partition. This eventually causes all replicas of the application directory partition to be deleted.
When the crossRef object is deleted, the Active Directory server will delete the domainDNS object that was created when the application directory partition was created, as well as deleting all objects in the application directory partition. None of the objects in the application directory partition are tombstoned when they deleted.
When an application directory partition is deleted, it is very difficult to restore it. To restore an application directory partition, it is necessary to restore a backup that has a replica of the application directory partition, find the crossRef object that represents the application directory partition and authoritatively restore the crossRef object.
To delete an application directory partition and its replicas, perform the following steps
- Search the Partitions container for a crossRef object that has an nCName attribute value that is equal to the distinguished name of the application directory partition.
- Delete the crossRef object.
For more information, see Example Code for Deleting an Application Directory Partition.