While player.addperk works when given a correct hexadecimal perk ID, player.removeperk does not. I tried all sorts of things and the perk is never removed. The console window gives some unexpected output, like:
WornHasKeyword >> 0.00
GetGlobalValue >> 22.91
GetGlobalValue >> 22.91
WornHasKeyword >> 0.00
WornHasKeyword >> 0.00
WornHasKeyword >> 0.00
WornHasKeyword >> 0.00
WornHasKeyword >> 0.00
WornHasKeyword >> 0.00
WornHasKeyword >> 0.00
WornHasKeyword >> 0.00
WornHasKeyword >> 0.00
WornHasKeyword >> 0.00
WornHasKeyword >> 0.00
WornHasKeyword >> 0.00
GetGlobalValue >> 22.91
I'm using the PC Steam version, on Windows 10