Cleaning index file