class_docstr: CodeController inherits from BaseController and manages business logic related to the
  code.
  
  Methods
  -------
  create(code_id=None)
      create a code object within the project
  list()
      list all code objects within the project
  delete(id)
      delete the specified code object from the project
docstr: Delete all traces of Code object
  
  Parameters
  ----------
  code_id : str
      code object id to remove
  
  Returns
  -------
  bool
      returns True if success else False
  
  Raises
  ------
  PathDoesNotExist
      if the specified Code does not exist.
docstr_tok: ["Delete","all","traces","of","Code","object","Parameters","--","--","--","--","--","code_id",":","str","code","object","id","to","remove","Returns","--","--","--","-","bool","returns","True","if","success","else","False","Raises","--","--","--","PathDoesNotExist","if","the","specified","Code","does","not","exist","."]
code: def delete(self, code_id):
      """Delete all traces of Code object
  
      Parameters
      ----------
      code_id : str
          code object id to remove
  
      Returns
      -------
      bool
          returns True if success else False
  
      Raises
      ------
      PathDoesNotExist
          if the specified Code does not exist.
      """
      code_obj = self.dal.code.get_by_id(code_id)
      if not code_obj:
          raise PathDoesNotExist(
              __("error", "controller.code.delete", code_id)
          )
      # Remove code reference
      delete_code_success = self.code_driver.delete_ref(
          code_obj.commit_id
      )
      # Delete code object
      delete_code_obj_success = self.dal.code.delete(code_obj.id)
  
      return delete_code_success and delete_code_obj_success
  
file_path: datmo/datmo/core/controller/code/code.py
imports: from datmo.core.util.i18n import get
  from datmo.core.controller.base import BaseController
  from datmo.core.entity.code import Code
  from datmo.core.util.exceptions import PathDoesNotExist, EnvironmentInitFailed, ArgumentError, CodeDoesNotExist
label_desc: Use image node_id 5 for calling the CodeController obj's underlying member method code with example usage: obj.delete(code_id) and returns: unknown