code: def stop(self, force=False, wait=False):
          
          log.debug("Stopping cluster `%s` ...", self.name)
  
          failed = self._stop_all_nodes(wait)
  
          if failed:
              if force:
                  self._delete_saved_data()
                  log.warning(
                      "Not all cluster nodes have been terminated."
                      " However, as requested, data about the cluster"
                      " has been removed from local storage.")
              else:
                  self.repository.save_or_update(self)
                  log.warning(
                      "Not all cluster nodes have been terminated."
                      " Fix errors above and re-run `elasticluster stop %s`",
                      self.name)
          else:
              self._delete_saved_data()
docs: Terminate all VMs in this cluster and delete its repository.
  
          :param bool force:
            remove cluster from storage even if not all nodes could be stopped.