function remove(item) {
	if (filesTree[item]) {
		delete filesTree[item];
		emit("remove-file", item);
		return;
	}

	const tree = getTree(Object.values(filesTree), item);
	if (!tree) return;
	const { parent } = tree;
	const index = parent.children.indexOf(tree);
	parent.children.splice(index, 1);
	emit("remove-file", tree);
}
Remove a file from the list
@param {string} item url