public void deleteEntityDescriptor(String realm,String entityID) throws IDFFMetaException {
  if (entityID == null) {
    LogUtil.error(Level.INFO,LogUtil.NULL_ENTITY_ID,null);
    throw new IDFFMetaException("nullEntityID",null);
  }
 else {
    if ((realm == null) || (realm.length() == 0)) {
      realm=ROOT_REALM;
    }
    String[] args={entityID,realm};
    try {
      Map oldAttrs=idffMetaConfigInstance.getConfiguration(realm,entityID);
      if (oldAttrs == null || oldAttrs.isEmpty()) {
        LogUtil.error(Level.INFO,LogUtil.ENTITY_DOES_NOT_EXISTS,args);
        throw new IDFFMetaException("entityDoesNotExists",args);
      }
      removeEntityFromCOT(realm,entityID);
      idffMetaConfigInstance.deleteConfiguration(realm,entityID,null);
      LogUtil.access(Level.INFO,LogUtil.DELETE_ENTITY_SUCCEEDED,args);
      IDFFMetaCache.setEntityDescriptor(realm,entityID,null);
    }
 catch (    ConfigurationException ce) {
      debug.error("Error deleting Entity Descriptor" + entityID,ce);
      LogUtil.error(Level.INFO,LogUtil.DELETE_ENTITY_FAILED,args);
      throw new IDFFMetaException(ce);
    }
catch (    UnsupportedOperationException uoe) {
      debug.error("Unsupported operation",uoe);
      LogUtil.error(Level.INFO,LogUtil.UNSUPPORTED_OPERATION,null);
      throw new IDFFMetaException("unsupportedOperation",null);
    }
  }
}

public void deleteEntityDescriptor ( String realm , String entityID ) throws IDFFMetaException { if ( entityID == null ) { LogUtil . error ( Level . INFO , LogUtil . NULL_ENTITY_ID , null ) ; throw new IDFFMetaException ( "nullEntityID" , null ) ; } else { if ( ( realm == null ) || ( realm . length ( ) == 0 ) ) { realm = ROOT_REALM ; } String [ ] args = { entityID , realm } ; try { Map oldAttrs = idffMetaConfigInstance . getConfiguration ( realm , entityID ) ; if ( oldAttrs == null || oldAttrs . isEmpty ( ) ) { LogUtil . error ( Level . INFO , LogUtil . ENTITY_DOES_NOT_EXISTS , args ) ; throw new IDFFMetaException ( "entityDoesNotExists" , args ) ; } removeEntityFromCOT ( realm , entityID ) ; idffMetaConfigInstance . deleteConfiguration ( realm , entityID , null ) ; LogUtil . access ( Level . INFO , LogUtil . DELETE_ENTITY_SUCCEEDED , args ) ; IDFFMetaCache . setEntityDescriptor ( realm , entityID , null ) ; } catch ( ConfigurationException ce ) { debug . error ( "Error deleting Entity Descriptor" + entityID , ce ) ; LogUtil . error ( Level . INFO , LogUtil . DELETE_ENTITY_FAILED , args ) ; throw new IDFFMetaException ( ce ) ; } catch ( UnsupportedOperationException uoe ) { debug . error ( "Unsupported operation" , uoe ) ; LogUtil . error ( Level . INFO , LogUtil . UNSUPPORTED_OPERATION , null ) ; throw new IDFFMetaException ( "unsupportedOperation" , null ) ; } } }
deletes the standard metadata entity descriptor under the realm .
