Removes previous index file.