salam yahya
46:25: Destroying everything by command of its Lord. And they became so that nothing was seen [of them] except their dwellings. Thus do We recompense the criminal people.
51:42: It spared nothing that it reached, but blew it into broken spreads of rotten ruins.
I don't think there is any contradiction. We must think of these two ayat together. The wind destroyed everything it reached, leaving their dwellings. This is what "ruin" look like: