public void delete(String dn) throws NamingException {
  DirContext ctx=new InitialDirContext(env);
  ctx.destroySubcontext(dn);
  ctx.close();
}

public void delete ( String dn ) throws NamingException { DirContext ctx = new InitialDirContext ( env ) ; ctx . destroySubcontext ( dn ) ; ctx . close ( ) ; }
deletes ldap entries on an ldap server
