code: function removeFile(path, treeRes, done) {
  	const regex = new RegExp('^' + path + '$|^' + path + '(/)');
  	const filteredTree = treeRes.tree.filter(function(file) {
  		return !regex.test(file.path);
  	});
  	if(filteredTree.length === treeRes.tree.length)
  		done(new UnifileError(UnifileError.ENOENT, 'Not Found'));
  	else done(null, filteredTree);
  }
docs: Remove a file/folder by transforming the given tree
  @param  {string} path - Path to the file/folder to delete
  @param  {Object} treeRes - Result of a GET request to the tree API
  @param  {Object} treeRes[].tree - Commit tree
  @param  {string} [branch=master] - Branch containing file/folder
  @private