docs: def delete_image(self, name: str) -> None:
          """
          Deletes a Docker image with a given name.
  
          Parameters:
              name: the name of the Docker image.
          """
          logger.debug("deleting Docker image: %s", name)
          path = "docker/images/{}".format(name)
          response = self.__api.delete(path)
          if response.status_code != 204:
              try:
                  self.__api.handle_erroneous_response(response)
              except Exception:
                  logger.exception("failed to delete Docker image: %s", name)
                  raise
          else:
              logger.info("deleted Docker image: %s", name)