Exterminating literally everything magical, including dementors, magical sea critters, ghosts or magical items sunk in the middle of the ocean may be hard without exploding the planet, or even with it, if some magical entities are very durable.
Eh, using WH40k imperial troops to occupy (muggles...