3.7 Deleting an Entry

This section contains information about how to delete an entry from the directory using classes provided by Novell.Directory.Ldap namespace. To delete an entry, use the Delete function of LdapConnection class.

Example

// C# Library namespace
using Novell.Directory.Ldap;

// Creating an LdapConnection instance 
LdapConnection ldapConn= new LdapConnection();

//Connect function will create a socket connection to the server
ldapConn.Connect(ldapHost,ldapPort);

//Bind function will bind the user object Credentials to the server
ldapConn.Bind(userDN,userPasswd);

//Deletes the entry from the directory
ldapConn.Delete(entryDN);