When the Persians destroyed Miletus in 494 b.c. they also razed the Temple of Apollo at Didyma.
The Temple of Apollo was completely destroyed by the Persians.
The Persians kept the Temple of Apollo at Didyma safe despite destroying Miletus.