cleanup of index and unused templates