code: def delete_container_2(self, name):
          
          code, container = self.get_container(name)
          if code == httplib.NOT_FOUND:
              return True
          elif code != httplib.OK:
              self.logger.error("Container %s on %s not exists. %d", name, self._host, code)
              return False
  
          if container.status.Running:
              code, message = self.change_container(name)
              if code != httplib.OK:
                  self.logger.error("Stop container %s on %s error, status code %d, message %s", name, self._host, code,
                                    objson.dumps(message))
                  return False
  
          code, message = self.delete_container(name)
          if code != httplib.OK:
              self.logger.error("Delete container %s on %s error, status code %d, message %s", name, self._host, code,
                                objson.dumps(message))
              return False
          return True
docs: :param name: `class`:`str`, container name
          :return: `class`:`bool`, return True if delete success, otherwise return False