code: func (a *API) RemoveFile(ctx context.Context, mhash string, path string, fname string, nameresolver bool) (string, error) {
  	apiRmFileCount.Inc(1)
  
  	uri, err := Parse("bzz:/" + mhash)
  	if err != nil {
  		apiRmFileFail.Inc(1)
  		return "", err
  	}
  	mkey, err := a.ResolveURI(ctx, uri, EmptyCredentials)
  	if err != nil {
  		apiRmFileFail.Inc(1)
  		return "", err
  	}
  
  	// trim the root dir we added
  	if path[:1] == "/" {
  		path = path[1:]
  	}
  
  	mw, err := a.NewManifestWriter(ctx, mkey, nil)
  	if err != nil {
  		apiRmFileFail.Inc(1)
  		return "", err
  	}
  
  	err = mw.RemoveEntry(filepath.Join(path, fname))
  	if err != nil {
  		apiRmFileFail.Inc(1)
  		return "", err
  	}
  
  	newMkey, err := mw.Store()
  	if err != nil {
  		apiRmFileFail.Inc(1)
  		return "", err
  
  	}
  
  	return newMkey.String(), nil
  }
docs: // RemoveFile removes a file entry in a manifest.