Quoted By:
The best you can do is to remake a new Pokemon from scratch with the same PID and IVs, as PKHex doesn't allow you to move things backwards (for obvious reasons)
Next time I recommend saving .pk files of every important Pokémon (picture related) so in case of hardware failure or regret you'll be able to transfer everything back.