code: func (s *Service) RemoveImage(ctx context.Context, imageType options.ImageType) error {
  	switch imageType {
  	case "local":
  		if s.Config().Image != "" {
  			return nil
  		}
  		return image.RemoveImage(ctx, s.clientFactory.Create(s), s.imageName())
  	case "all":
  		return image.RemoveImage(ctx, s.clientFactory.Create(s), s.imageName())
  	default:
  		// Don't do a thing, should be validated up-front
  		return nil
  	}
  }
docs: // RemoveImage implements Service.RemoveImage. It removes images used for the service
  // depending on the specified type.