Bought 1 million paper hat by mistake

I purchased the 1 million units paper hat by mistake. I didn’t expect a hat to be that expensive and just clicked yes when I was tired. Is there anyway to get back my units and remove the hat from my accessoires?

If you right click the hat in the appearance menu, you can sell the hat and get 50% of your units back.