def METHOD_NAME(identity_key, id_type, account, issuer, vo='def', *, session: "Session"):
    """
    Removes a membership association between identity and account.
    :param identity_key: The identity key name. For example x509 DN, or a username.
    :param id_type: The type of the authentication (x509, gss, userpass, ssh, saml).
    :param account: The account name.
    :param issuer: The issuer account.
    :param vo: the VO to act on.
    :param session: The database session in use.
    """
    kwargs = {'account': account}
    if not permission.has_permission(issuer=issuer, vo=vo, action='del_account_identity', kwargs=kwargs, session=session):
        raise exception.AccessDenied('Account %s can not delete account identity' % (issuer))
    account = InternalAccount(account, vo=vo)
    return identity.METHOD_NAME(identity_key, IdentityType[id_type.upper()], account, session=session)