src/orion/core/cli/db/rm.py
def process_exp_rm(storage, root):
    """Delete the given experiment node and all its children."""
    trials_total = 0
    exp_total = 0
    for node in root:
        count = storage.delete_trials(uid=node.item.id)
        trials_total += count
        logger.debug(
            "%d trials deleted in experiment %s-v%d",
            count,
            node.item.name,
            node.item.version,
        )
        count = storage.delete_experiment(uid=node.item.id)
        logger.debug(
            "%s experiment %s-v%d deleted", count, node.item.name, node.item.version
        )
        exp_total += count

    print(f"{trials_total} trials deleted")
    print(f"{exp_total} experiments deleted")
Delete the given experiment node and all its children.
Delete the given experiment node and all its children.
Delete the given experiment node and all its children .
def process_exp_rm(storage, root):
    trials_total = 0
    exp_total = 0
    for node in root:
        count = storage.delete_trials(uid=node.item.id)
        trials_total += count
        logger.debug(
            "%d trials deleted in experiment %s-v%d",
            count,
            node.item.name,
            node.item.version,
        )
        count = storage.delete_experiment(uid=node.item.id)
        logger.debug(
            "%s experiment %s-v%d deleted", count, node.item.name, node.item.version
        )
        exp_total += count
    print(f"{trials_total} trials deleted")
    print(f"{exp_total} experiments deleted")
def process_exp_rm ( storage , root ) : trials_total = 0 exp_total = 0 for node in root : count = storage . delete_trials ( uid = node . item . id ) trials_total += count logger . debug ( "%d trials deleted in experiment %s-v%d" , count , node . item . name , node . item . version , ) count = storage . delete_experiment ( uid = node . item . id ) logger . debug ( "%s experiment %s-v%d deleted" , count , node . item . name , node . item . version ) exp_total += count print ( f"{trials_total} trials deleted" ) print ( f"{exp_total} experiments deleted" )
Delete the given experiment node and all its children.
Delete the given experiment node and all its children .
"""Delete the given experiment node and all its children."""
storage
root