Sorry — no, you cannot delete a furry friend in Build-A-Bearville.
It is a common thing to want, usually for exactly the reason in your question: a key code went into a character that belonged to someone else, and the natural instinct is to undo it. The game does not offer a delete function for bears, so there is no self-service fix.
What I would do in that position is contact Build-A-Bear's support directly, explain what happened, and ask them to look at the account. Support is the only route that can actually change anything, and mistakes with mistyped codes are the sort of thing they deal with regularly.
On the original thread someone also asked to be sent the correct code — I would not do that, and neither should you. Codes are single-use and tied to an account, so a code handed to you by a stranger will not work, and anyone asking for your code in return is after your account.