Head to the Build-A-Bear site and enter your code as if you were redeeming it. Once it's accepted, look to the top right of the screen — there should be a "delete code" option. Click it and the code is removed from your account.
Do this only when you're sure, since a deleted code generally can't be recovered, and you'd need the original card or receipt to add it back.