def METHOD_NAME(cursor, user_id):
    try:
        cursor.execute(
            'DELETE FROM kontext_user_access '
            'WHERE user_id = %s', (user_id,))
    except Exception as ex:
        print(ex)