@classmethod<EOL><INDENT>def delete(cls, group, user):<DEDENT>
with db.session.begin_nested():<EOL><INDENT>cls.query.filter_by(group=group, user_id=user.get_id()).delete()<EOL><DEDENT>
Delete membership.