It probably depends of your definition of being razed, it certainly has been attacked many times by everyone from Huns to Germans, I don't know if it's exactly 40 times but that link should give you some info if you're willing to count all the times it was attacked/destroyed.