Clean up index file