Skip Navigation Links
Home
+
About
+
Products
+
Support
+
Purchase
+
Search
+
Delete (Method of LDAPEntry)
Remove the Entry from the directory.
Syntax
Delete
Remarks
Removes this Entry from the directory server. The object will remain in all EntryCollections in which it existed before being deleted, but any calls to it will fail with a trappable error.
Example
Set pLDAP = CreateObject("LDAPClient.3")
Call pLDAP.Connect("ldapserver")

' Brad retires, so we no longer need him in our list of current employees
Set pEntries = pLDAP.Search("o=airius.com", "(&(givenName=Brad)(sn=Walker))")
Set pEntry = pEntries(0)
Call pEntry.Delete
' Any further calls to pEntry will throw trappable errors