public void deleteEntityDescriptor(String realm,String entityId) throws SAML2MetaException {
  if (entityId == null) {
    return;
  }
  if (realm == null) {
    realm="/";
  }
  String[] objs={entityId,realm};
  try {
    removeFromCircleOfTrust(realm,entityId);
    configInst.deleteConfiguration(realm,entityId,null);
    LogUtil.access(Level.INFO,LogUtil.ENTITY_DESCRIPTOR_DELETED,objs,null);
    SAML2MetaCache.putEntityDescriptor(realm,entityId,null);
  }
 catch (  ConfigurationException e) {
    debug.error("SAML2MetaManager.deleteEntityDescriptor:",e);
    String[] data={e.getMessage(),entityId,realm};
    LogUtil.error(Level.INFO,LogUtil.CONFIG_ERROR_DELETE_ENTITY_DESCRIPTOR,data,null);
    throw new SAML2MetaException(e);
  }
}

public void deleteEntityDescriptor ( String realm , String entityId ) throws SAML2MetaException { if ( entityId == null ) { return ; } if ( realm == null ) { realm = "/" ; } String [ ] objs = { entityId , realm } ; try { removeFromCircleOfTrust ( realm , entityId ) ; configInst . deleteConfiguration ( realm , entityId , null ) ; LogUtil . access ( Level . INFO , LogUtil . ENTITY_DESCRIPTOR_DELETED , objs , null ) ; SAML2MetaCache . putEntityDescriptor ( realm , entityId , null ) ; } catch ( ConfigurationException e ) { debug . error ( "SAML2MetaManager.deleteEntityDescriptor:" , e ) ; String [ ] data = { e . getMessage ( ) , entityId , realm } ; LogUtil . error ( Level . INFO , LogUtil . CONFIG_ERROR_DELETE_ENTITY_DESCRIPTOR , data , null ) ; throw new SAML2MetaException ( e ) ; } }
deletes the standard metadata entity descriptor under the realm .
