Remove unnecessary reference files.