What do you do with a dead cactus

You can try to repot the plant, removing diseased soil and replacing it with sterile soil. You should wash the roots off well before replanting in a fresh