def METHOD_NAME(context: schemas_ee.CurrentContext, project_id, session_id):
    with pg_client.PostgresClient() as cur:
        cur.execute(
            cur.mogrify(f"""\
                        DELETE FROM public.user_favorite_sessions                          
                        WHERE user_id = %(userId)s
                            AND session_id = %(session_id)s
                        RETURNING session_id;""",
                        {"userId": context.user_id, "session_id": session_id})
        )
        row = cur.fetchone()
    if row:
        sessions_favorite_exp.METHOD_NAME(project_id=project_id, user_id=context.user_id, session_id=session_id)
        return {"data": {"sessionId": session_id}}
    return {"errors": ["something went wrong"]}