From Alexander the Great to various Khan's, then Mughals, then Portuguese etc. Some important Indian texts were burned/destoryed in these attacks, For eg., the Nalanda University
Still, a lot of texts remained both in written format and in Oral format.