remove files merged into main document and so on