Remove unused files correctly