In one instance I used a message-box with a text-input: 'This will do X and be irrevocable. If you're sure, that's what you really want TYPE "acknowledged" in the field below.'
It wasn't popular, but for the ~10 years it lingers in the app, I have never been called to restore data changed/deleted by that part of the program.