LDAP.Delete
-----------

Removes a leaf entry from the directory tree.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [LDAP](component_LDAP.md) | [6.0](newinversion60.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "LDAP.Delete"; LDAPRef; DN ) 

**MBS**( **"LDAP.Delete";** /\* Removes a leaf entry from the directory tree. \*/  
**$LDAPRef**; /\* The reference number for the LDAP connection.e.g. $ldap \*/   
**$DN**) /\* The distinguished name of the entry to delete. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| LDAPRef | The reference number for the LDAP connection. | $ldap |
| DN | The distinguished name of the entry to delete. |  |

### Result

Returns OK or error.

### Description

Removes a leaf entry from the directory tree.  
Be aware that LDAP does not support deletion of entire subtrees in a single operation.  
When connecting to an LDAP 2 server, the application must perform a bind operation first.  
### See also

- [LDAP.Release](LDAPRelease.md)

This function checks for a license.

Created 15th December 2015 , last changed 15th December 2015

  
[LDAP.Connect](LDAPConnect.md) - [LDAP.GetBinaryKeys](LDAPGetBinaryKeys.md)

[HTML Version](LDAPDelete.shtml)