Don’t close any credit cards
If you’re a first-time homebuyer rushing to improve your credit score, be aware that closing cards can make the job much tougher. Closing an account immediately reduces your available credit. If you have outstanding debt, this will cause your credit utilization ratio to jump up and therefore, your credit score to drop.
Pro tip: Closing a credit card account with a high credit limit could have an especially negative impact on your score, particularly if you are carrying a high balance on another card. – AZ Credit Medix