This is a bad move, especially if you've had it for a while. Closing the account may reduce your average account age, and that will lower your credit score.
Better choice: pay off the balance, if you have one. If there's an annual fee, convert the account to one without a fee. Then, just use the card once or twice a month. I keep a couple of accounts "alive" by auto-paying a monthly bill. That will keep the account "active", so the bank won't close the account.
It will also help your credit score, because it shows activity on the account AND the credit limit is added with the rest of your credit cards to determine your utilization (outstanding balances divided by total of all credit limits).
Just don't forget to pay that bill every month!
My ultimate goal is to get my FICO score to zero! I am no longer willing to worship at the alter of FICO. If I don’t have the cash for something, then I just won’t be able to buy it. Since I have taken on that attitude, I have felt more at peace than I could imagine.