code: def main(args):
      """Remove the experiment(s) or trial(s)."""
      config = experiment_builder.get_cmd_config(args)
      builder = experiment_builder.ExperimentBuilder(
          config.get("storage")
      )
  
      # Find root experiment
      root = builder.load(
          name=args["name"], version=args.get("version", None)
      ).node
  
      # List all experiments with children
      print_tree(root, nameattr="tree_name")
  
      storage = builder.storage
  
      if args["status"]:
          delete_trials(
              storage, root, args["name"], args["status"], args["force"]
          )
      else:
          delete_experiments(storage, root, args["name"], args["force"])
  
file_path: orion/src/orion/core/cli/db/rm.py
imports: import argparse
  import logging
  import sys
  from orion.core.io import experiment_builder
  from orion.core.utils.pptree import print_tree
  from orion.core.utils.terminal import confirm_name
label_desc: Use image node_id 6 for calling a global function with example usage: main(args) without return types