Easiest might be to unbuild the reef, transfer everybody to a Brute trashcan (safe) and quickly scoop out (maybe a wet/dry vac) absolutely everything left. Replace the rock, then replace water and inhabitants, then add well-washed sand slowly, cupful every few days, over weeks---OR replace rock, replace sandbed with commercial 'live sand' AND replace inhabitants, relying on your rock to seed it to the degree needed. The rock SHOULD be able to 'carry' the tank on its own if you feed very, very lightly for the next 10 days, after which the sandbed can help a tiny bit and you still need to go slow. If you have a functional fuge, it would also help carry the tank through this.