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: 
You can remove perks you currently have by using:

> 
> player.removeperk *perkid*
> 
> 
> 

To find out the id of the perk, type this in:

> 
> help "perk name here" 0
> 
> 
> 

This will bring up a list of all items matching your query (hopefully it contains the perk in that list).

To add a perk:

> 
> player.addperk *perkid*
> 
> 
> 

**Note:** for perks that have multiple levels, you will have to remove all the perks for those skills to clear it out. i.e. one handed has 5 levels, the way skyrim tracks that is to add a perk for each level, so there are 5 different perks for one handed.

To redistribute your stats, you can use:

> 
> player.setav *stat value*
> 
> 
> 

However this will not persist across saves, to do that use:

> 
> player.modav *stat amount\_to\_modify\_by*
> 
> 
> 

That can be used to set all skills and stats.
If you have the Dragonborn DLC, play through the main DLC questline. One of the rewards of completing the [At the Summit of Apocrypha](http://www.uesp.net/wiki/Dragonborn:At_the_Summit_of_Apocrypha) quest is:

> 
>  A book that transports you to Hermaeus Mora's realm, and allows you to reset perks at the cost of one Dragon Soul per tree.
> 
> 
>