@transactional_session
def del_account_identity(identity, type, account, session=None):
    '\n    Removes a membership association between identity and account.\n\n    :param identity: The identity key name. For example x509 DN, or a username.\n    :param type: The type of the authentication (x509, gss, userpass, saml).\n    :param account: The account name.\n    :param session: The database session in use.\n    '
    aid = session.query(models.IdentityAccountAssociation).filter_by(identity=identity, identity_type=type, account=account).first()
    if (aid is None):
        raise exception.IdentityError(("Identity ('%s','%s') does not exist!" % (identity, type)))
    aid.delete(session=session)
Removes a membership association between identity and account.

:param identity: The identity key name. For example x509 DN, or a username.
:param type: The type of the authentication (x509, gss, userpass, saml).
:param account: The account name.
:param session: The database session in use.
@transactional_session
def del_account_identity(identity, type, account, session=None):
    '\n    Removes a membership association between identity and account.\n\n    :param identity: The identity key name. For example x509 DN, or a username.\n    :param type: The type of the authentication (x509, gss, userpass, saml).\n    :param account: The account name.\n    :param session: The database session in use.\n    '
    aid = session.query(models.IdentityAccountAssociation).filter_by(identity=identity, identity_type=type, account=account).first()
    if (aid is None):
        raise exception.IdentityError(("Identity ('%s','%s') does not exist!" % (identity, type)))
    aid.delete(session=session)