It’s easy — just heat it above the tempering temperature of the steel in question. You can achieve this in an ordinary oven for most steels, and you can also achieve it (locally) with a motorized sharpener that isn’t cooled. Don’t take a knife you care about to be professionally sharpened by a person who uses a non-water-cooled power tool.
Sadly not impossible, I've 'lost' (they're still in the back of a drawer) two good knives to idiots attempting to pry apart frozen chops and steaks .. each case snapped a good inch from the tip.
Not damage from a dishwasher and not damage the edge I realize, but worth mention as a tale of caution.
Dishwasher detergent is caustic and corrosive to steel, so over time it can pit the metal and dull the finish. Handles will swell and become loose or deteriorate, either because of wood repeatedly being waterlogged and dried or just from the heat cycling. A loose handle can be unsanitary, unsightly, dangerous, or all three.
You'll often read that knives in the dishwasher will bang around and that will damage the edge. And that it's more likely you will hurt yourself pulling a knife out of the dishwasher vs. cleaning them properly.
Then you also have the action of the dishwasher water jets bouncing the knife around, dulling and destroying the edge.
Only the shittiest cheapest plastic-handled knives I own touch the dishwasher. Everything else gets cleaned and wiped by hand and put straight to the knife block or its respective scabbard.