"Then We destroyed the others." He means: I destroyed those who remained, and I destroyed her along with them.
﴿ثمَّ دمرنا الآخرين﴾ يُرِيد: دمرت عَلَى من بَقِي، ودمرت عَلَيْهَا مَعَهم]