src/orion/core/cli/db/rm.py
def process_trial_rm(storage, root, status):
    """Delete the matching trials of the given experiment."""
    trials_total = 0
    for node in root:
        if status == "*":
            query = {}
        else:
            query = {"status": status}

        count = storage.delete_trials(uid=node.item.id, where=query)
        logger.debug(
            "%d trials deleted in experiment %s-v%d",
            count,
            node.item.name,
            node.item.version,
        )
        trials_total += count

    print(f"{trials_total} trials deleted")
Delete the matching trials of the given experiment.
Delete the matching trials of the given experiment.
Delete the matching trials of the given experiment .
def process_trial_rm(storage, root, status):
    trials_total = 0
    for node in root:
        if status == "*":
            query = {}
        else:
            query = {"status": status}
        count = storage.delete_trials(uid=node.item.id, where=query)
        logger.debug(
            "%d trials deleted in experiment %s-v%d",
            count,
            node.item.name,
            node.item.version,
        )
        trials_total += count
    print(f"{trials_total} trials deleted")
def process_trial_rm ( storage , root , status ) : trials_total = 0 for node in root : if status == "*" : query = { } else : query = { "status" : status } count = storage . delete_trials ( uid = node . item . id , where = query ) logger . debug ( "%d trials deleted in experiment %s-v%d" , count , node . item . name , node . item . version , ) trials_total += count print ( f"{trials_total} trials deleted" )
Delete the matching trials of the given experiment.
Delete the matching trials of the given experiment .
"""Delete the matching trials of the given experiment."""
storage
root
status