If you're thinking of buying a new house in NINE months than I would suggest you do not apply for ANY new credit, keep it prestine clean and keep util low consistently.
If the cards you want to get rid of have monthly/annual fees, you *can* get rid of them - closed accts retain good history for 10yrs.. but be mindful that if you do close them your utilization ratio is affected severely..
personally I would just let it ride out till done closing on a home and THAN apply when ficos have gone up after the tanking due to mortgage inqs..
good luck!