code: func (s *storageImpl) cleanupUploadTask(c context.Context, task *tasks.CleanupUpload) (err error) {
  	gs := s.getGS(c)
  
  	if err := gs.CancelUpload(c, task.UploadUrl); err != nil {
  		if transient.Tag.In(err) {
  			return errors.Annotate(err, "transient error when canceling the resumable upload").Err()
  		}
  		logging.WithError(err).Errorf(c, "Failed to cancel resumable upload")
  	}
  
  	if err := gs.Delete(c, task.PathToCleanup); err != nil {
  		if transient.Tag.In(err) {
  			return errors.Annotate(err, "transient error when deleting the temp file").Err()
  		}
  		logging.WithError(err).Errorf(c, "Failed to delete the temp file")
  	}
  
  	return nil
  }
docs: // cleanupUploadTask is called to clean up after a canceled upload.
  //
  // Best effort. If the temporary file can't be deleted from GS due to some
  // non-transient error, logs the error and ignores it, since retrying won't
  // help.