Make sure you go to the console commands first, then type in your cheats. To use cheats, press CTRL + SHIFT + C and then type testingcheats true. To get rid of a trait in Sims 4, just type traits.remove trait TraitsName and you're done.