class_docstr: Base Recipe
class_docstr_tok: ["Base","Recipe"]
docstr: Removes the outputs of the specified step from the cache, or removes the cached outputs
  of all steps if no particular step is specified. After cached outputs are cleaned
  for a particular step, the step will be re-executed in its entirety the next time it is
  invoked via ``BaseRecipe.run()``.
  
  :param step: String name of the step to clean within the recipe. If not specified,
               cached outputs are removed for all recipe steps.
docstr_tok: ["Removes","the","outputs","of","the","specified","step","from","the","cache",",","or","removes","the","cached","outputs","of","all","steps","if","no","particular","step","is","specified",".","After","cached","outputs","are","cleaned","for","a","particular","step",",","the","step","will","be","re-executed","in","its","entirety","the","next","time","it","is","invoked","via","``","BaseRecipe.run","(",")","``",".",":","param","step",":","String","name","of","the","step","to","clean","within","the","recipe",".","If","not","specified",",","cached","outputs","are","removed","for","all","recipe","steps","."]
code: def clean(self, step: Optional[str] = None) -> None:
      """
      Removes the outputs of the specified step from the cache, or removes the cached outputs
      of all steps if no particular step is specified. After cached outputs are cleaned
      for a particular step, the step will be re-executed in its entirety the next time it is
      invoked via ``BaseRecipe.run()``.
  
      :param step: String name of the step to clean within the recipe. If not specified,
                   cached outputs are removed for all recipe steps.
      """
      to_clean = self._steps if not step else [self._get_step(step)]
      clean_execution_state(self._recipe_root_path, to_clean)
  
imports: import abc
  import logging
  import os
  from typing import List, Optional
  from mlflow.exceptions import MlflowException
  from mlflow.protos.databricks_pb2 import BAD_REQUEST, INTERNAL_ERROR, INVALID_PARAMETER_VALUE
  from mlflow.recipes import dag_help_strings
  from mlflow.recipes.artifacts import Artifact
  from mlflow.recipes.step import BaseStep, StepClass, StepStatus
  from mlflow.recipes.utils import get_recipe_config, get_recipe_name, get_recipe_root_path
  from mlflow.recipes.utils.execution import clean_execution_state, get_or_create_base_execution_directory, get_step_output_path, run_recipe_step
  from mlflow.recipes.utils.step import display_html
  from mlflow.utils.class_utils import _get_class_from_string
label_desc: Use image node_id 6 for calling the BaseRecipe obj's underlying member method code with example usage: obj.clean(step) without return types