class_docstr: EnvironmentController inherits from BaseController and manages business logic related to the
  environment.
  
  Methods
  -------
  create(dictionary)
      Create an environment within the project
  build(id)
      Build the environment for use within the project
  list()
      List all environments within the project
  delete(id)
      Delete the specified environment from the project
class_docstr_tok: ["EnvironmentController","inherits","from","BaseController","and","manages","business","logic","related","to","the","environment",".","Methods","--","--","--","-","create","(","dictionary",")","Create","an","environment","within","the","project","build","(","id",")","Build","the","environment","for","use","within","the","project","list","(",")","List","all","environments","within","the","project","delete","(","id",")","Delete","the","specified","environment","from","the","project"]
docstr: Delete all traces of an environment
  
  Parameters
  ----------
  environment_id : str
      environment object id to remove
  
  Returns
  -------
  bool
      True if success
  
  Raises
  ------
  EnvironmentDoesNotExist
      if the specified Environment does not exist.
docstr_tok: ["Delete","all","traces","of","an","environment","Parameters","--","--","--","--","--","environment_id",":","str","environment","object","id","to","remove","Returns","--","--","--","-","bool","True","if","success","Raises","--","--","--","EnvironmentDoesNotExist","if","the","specified","Environment","does","not","exist","."]
code: def delete(self, environment_id):
      """Delete all traces of an environment
  
      Parameters
      ----------
      environment_id : str
          environment object id to remove
  
      Returns
      -------
      bool
          True if success
  
      Raises
      ------
      EnvironmentDoesNotExist
          if the specified Environment does not exist.
      """
      self.environment_driver.init()
      if not self.exists(environment_id):
          raise EnvironmentDoesNotExist(
              __(
                  "error",
                  "controller.environment.delete",
                  environment_id,
              )
          )
      # Remove file collection
      environment_obj = self.dal.environment.get_by_id(environment_id)
      file_collection_deleted = self.file_collection.delete(
          environment_obj.file_collection_id
      )
      # Remove artifacts associated with the environment_driver
      environment_artifacts_removed = self.environment_driver.remove(
          environment_id, force=True
      )
      # Delete environment object
      delete_success = self.dal.environment.delete(environment_obj.id)
  
      return (
          file_collection_deleted
          and environment_artifacts_removed
          and delete_success
      )
  
imports: import os
  import shutil
  from datmo.core.controller.base import BaseController
  from datmo.core.controller.file.file_collection import FileCollectionController
  from datmo.core.entity.environment import Environment
  from datmo.core.util.i18n import get
  from datmo.core.util.validation import validate
  from datmo.core.util.spinner import Spinner
  from datmo.core.util.json_store import JSONStore
  from datmo.core.util.misc_functions import get_datmo_temp_path, list_all_filepaths
  from datmo.core.util.exceptions import PathDoesNotExist, RequiredArgumentMissing, TooManyArgumentsFound, EnvironmentNotInitialized, UnstagedChanges, ArgumentError, EnvironmentDoesNotExist, ProjectNotInitialized
label_desc: Use image node_id 13 for calling the EnvironmentController obj's underlying member method code with example usage: obj.delete(environment_id) and returns: unknown