code: func removeTempFile(dir, file string) {
  	changeDir(dir)
  	if err := os.Remove(file); err != nil {
  		beeLogger.Log.Warnf("Could not remove temporary file: %s", err)
  	}
  }
docs: // removeTempFile removes a file in dir