code: def remove_model(self, model_uuid: str) -> dict:
          
          model_type = None
          for key, val in self.models.items():
              if model_uuid in val:
                  self._log.info("Found %s among %s models.", model_uuid, key)
                  model_type = key
                  break
          if model_type is None:
              self._log.error("Model not found, aborted.")
              raise ValueError
          model_directory = os.path.join(self.cached_repo, model_type)
          model_node = self.models[model_type]
          meta_node = self.meta[model_type]
          if len(model_node) == 1:
              self.models.pop(model_type)
              self.meta.pop(model_type)
              paths = [os.path.join(model_directory, model) for model in os.listdir(model_directory)]
          else:
              if meta_node["default"] == model_uuid:
                  self._log.info("Model is set as default, removing from index ...")
                  meta_node["default"] = ""
              model_node.pop(model_uuid)
              paths = [os.path.join(model_directory, model_uuid + ".md")]
          git.remove(self.cached_repo, paths)
          return {"model": model_type, "uuid": model_uuid}
docs: Delete the model from the registry. Call `upload()` to update the remote side.