Sure, but they didnt raze Edo like you said.
Btw, the main one, Edo-Jo, the world's largest ever castle was kept -it was largely destroyed in three phases. A city wide fire in 1657, again in 1873, and finally WWII bombing in 1945.
Before the 1657 Mereiki Fire, that killed 100,000:
Meiji era -most of the city was still traditional buildings too: