ldap_deleteA function (winldap.h)
The ldap_delete function deletes an entry from the directory tree.
WINLDAPAPI ULONG LDAPAPI ldap_deleteA( [in] LDAP *ld, [in] const PSTR dn );
The session handle.
A pointer to a null-terminated string that contains the distinguished name of the entry to delete.
If the function succeeds, it returns the message ID of the delete operation.
Call ldap_delete to remove a leaf entry from the directory tree. Be aware that LDAP does not support deletion of entire subtrees in a single operation. As an asynchronous function, ldap_delete returns a message ID for the operation. Call ldap_result with the message ID to get the result of the operation. To cancel an asynchronous delete operation before it has completed, call ldap_abandon.
Multithreading: Calls to ldap_delete are thread-safe, provided that LdapGetLastError is used to retrieve the actual session error code when the function call returns the -1 failure code.
|Minimum supported client||Windows Vista|
|Minimum supported server||Windows Server 2008|