@Override public void delete(SSOToken token,IdType type,String name) throws IdRepoException {
  if (DEBUG.messageEnabled()) {
    DEBUG.message("delete invoked");
  }
  String dn=getDN(type,name);
  Connection conn=null;
  try {
    conn=createConnection();
    conn.delete(LDAPRequests.newDeleteRequest(dn));
  }
 catch (  LdapException ere) {
    DEBUG.error("Unable to delete entry: " + dn,ere);
    handleErrorResult(ere);
  }
 finally {
    IOUtils.closeIfNotNull(conn);
  }
  if (dnCacheEnabled) {
    dnCache.remove(generateDNCacheKey(name,type));
  }
}

@ Override public void delete ( SSOToken token , IdType type , String name ) throws IdRepoException { if ( DEBUG . messageEnabled ( ) ) { DEBUG . message ( "delete invoked" ) ; } String dn = getDN ( type , name ) ; Connection conn = null ; try { conn = createConnection ( ) ; conn . delete ( LDAPRequests . newDeleteRequest ( dn ) ) ; } catch ( LdapException ere ) { DEBUG . error ( "Unable to delete entry: " + dn , ere ) ; handleErrorResult ( ere ) ; } finally { IOUtils . closeIfNotNull ( conn ) ; } if ( dnCacheEnabled ) { dnCache . remove ( generateDNCacheKey ( name , type ) ) ; } }
deletes the identity from the directory .
