def remove(username=None, my_rank=None):
    """
    Update one or more users
    """
    if my_rank is None or my_rank > 30:
        return False
    if username is None:
        return False
    else:
        user = db.users.find_one({"username": username})

        if user is None:
            return False

        if user.get('rank') is None or user["rank"] <= my_rank:
            return False

        db.users.remove({"username": username})
        return True
dataset/ETHPy150Open Opentaste/bombolone/bombolone/model/users.py/remove/original