ldap_delete_s function (winldap.h)
The ldap_delete_s function is a synchronous operation that removes a leaf entry from the directory tree.
WINLDAPAPI ULONG LDAPAPI ldap_delete_s( [in] LDAP *ld, [in] 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, the return value is LDAP_SUCCESS.
If the function fails, it returns an error code. For more information, see Return Values.
Call ldap_delete_s 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 a synchronous operation, ldap_delete_s does not return until the operation is compete. Use ldap_delete or ldap_delete_ext to perform the delete operation asynchronously.
Multithreading: The ldap_delete_s function is thread-safe.
|Minimum supported client||Windows Vista|
|Minimum supported server||Windows Server 2008|