Согласно странице справочника ldapdelete должно быть возможно удалить записи
[root@controller ~]# man ldapdelete
EXAMPLE
The following command:
ldapdelete "cn=Delete Me,dc=example,dc=com"
will attempt to delete the entry named "cn=Delete Me,dc=exam‐
ple,dc=com". Of course it would probably be necessary to supply
authentication credentials.
но удаление домена не работает:
[root@controller ~]# ldapdelete -x -D "cn=Manager,dc=my-domain,dc=com" -W "dc=my-domain,dc=com"
Enter LDAP Password:
ldap_delete: No such object (32)
в то время как это существует
[root@controller ~]# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
# extended LDIF
#
# LDAPv3
# base <> with scope baseObject
# filter: (objectclass=*)
# requesting: namingContexts
#
#
dn:
namingContexts: dc=my-domain,dc=com
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
Даже удаление базовой записи не удалит контекст именования. Вам придется удалить его из своей конфигурации.