Question: While leveling in Skyrim I put a perk in a tree, but now I feel like it is wasted, since I've found blowing things up with spells is much more fun than stabbing things with a giant sword. 

Is there anyway for me to recover the wasted perk? I'm on the PC so I was guessing console commands could help.

Answer: 
Alternatively to cheating, there are other options:

1. Get yourself killed, your perk won't be saved.
2. Quit the game abruptly without saving, your perk won't be saved.
3. Although not really fair, you could return to a previous save game.
For PC.

An easy solution related to all perks, so you can basically recreate your char:

This mod will remove all perks and add the right ammount removed as perk points:  

[Ishs Respec Mod](http://www.nexusmods.com/skyrim/mods/16471/?) 

If there remain any perks after the above mod being used, use the console to remove them (as explained by [Arkive post](https://gaming.stackexchange.com/a/35140/45976), you can even create a bat file to make it easier later on) and use this mod:  

[Perk Point Potion](http://www.nexusmods.com/skyrim/mods/10836/?)  

to get the right ammount of perk points back.