class_docstr: An Amazon SageMaker experiment, which is a collection of related trials.
  
  New experiments are created by calling `experiments.experiment.Experiment.create`.
  Existing experiments can be reloaded by calling `experiments.experiment.Experiment.load`.
  
  Attributes:
      experiment_name (str): The name of the experiment. The name must be unique
          within an account.
      display_name (str): Name of the experiment that will appear in UI,
          such as SageMaker Studio.
      description (str): A description of the experiment.
      tags (List[Dict[str, str]]): A list of tags to associate with the experiment.
docstr: Force to delete the experiment and associated trials, trial components.
  
  Args:
      action (str): The string '--force' is required to pass in to confirm recursively
          delete the experiments, and all its trials and trial components.
docstr_tok: ["Force","to","delete","the","experiment","and","associated","trials",",","trial","components",".","Args",":","action","(","str",")",":","The","string","'","--","force","'","is","required","to","pass","in","to","confirm","recursively","delete","the","experiments",",","and","all","its","trials","and","trial","components","."]
code: def _delete_all(self, action):
      """Force to delete the experiment and associated trials, trial components.
  
      Args:
          action (str): The string '--force' is required to pass in to confirm recursively
              delete the experiments, and all its trials and trial components.
      """
      if action != "--force":
          raise ValueError(
              "Must confirm with string '--force' in order to delete the experiment and "
              "associated trials, trial components."
          )
  
      delete_attempt_count = 0
      last_exception = None
      while True:
          if delete_attempt_count == self._MAX_DELETE_ALL_ATTEMPTS:
              raise Exception(
                  "Failed to delete, please try again."
              ) from last_exception
          try:
              for trial_summary in self.list_trials():
                  trial = _Trial.load(
                      sagemaker_session=self.sagemaker_session,
                      trial_name=trial_summary.trial_name,
                  )
                  for (
                      trial_component_summary
                  ) in (
                      trial.list_trial_components()
                  ):  # pylint: disable=no-member
                      tc = _TrialComponent.load(
                          sagemaker_session=self.sagemaker_session,
                          trial_component_name=trial_component_summary.trial_component_name,
                      )
                      tc.delete(force_disassociate=True)
                      # to prevent throttling
                      time.sleep(1.2)
                  trial.delete()  # pylint: disable=no-member
                  # to prevent throttling
                  time.sleep(1.2)
              self.delete()
              break
          except Exception as ex:  # pylint: disable=broad-except
              last_exception = ex
          finally:
              delete_attempt_count = delete_attempt_count + 1
  
file_path: sagemaker-python-sdk/src/sagemaker/experiments/experiment.py
imports: from __future__ import absolute_import
  import time
  from botocore.exceptions import ClientError
  from sagemaker.apiutils import _base_types
  from sagemaker.experiments.trial import _Trial
  from sagemaker.experiments.trial_component import _TrialComponent
  from sagemaker.utils import format_tags
label_desc: Use image node_id 7 for calling the Experiment obj's underlying member method code with example usage: obj._delete_all(action) without return types