remove unnecessary files from index