Wrong
Some of the advice on here could not be more wrong.....
If you have "excess availability" of credit that is very bad when applying for mortgages or other bank loans.
When a lender looks at your debt ratio it is based on the assumption that all available credit is maxed out (since what's stopping you from doing that the day after your new loan/mortgage).
Therefore access to credit is just as bad as having to much debt or maxed out credit cards.
Only keep credit cards you plan to actively use and do not keep them maxed out and make your payments on time. Having unused credit cards with zero balances will hurt your credit rating and ratios.
Having high interest credit cards (store cards, etc) are seen as a double negative since any debts incurred on those cards is much harder to service givven that a larger portion of the minimum monthly payment only goes to interest without reducing the principle.
Prelations is correct....if you cancel a credit card it shows on your report that you cancelled it, which is a good thing as it shows credit responsibility.
Also, if you cancel a credit card check your credit report a few months later, often credit card companies just close your account but do not cancel it and therefore it is still affecting your debt ratios and credit scores.
Also, remember that if you apply for credit more than 1 time every three months this will also diminish your credit score. Therefore be weary of stores and company's which offer you gifts just for applying. Each application results in a credit check which hurts your score. Too many credit searches and you get branded a "credit seeker" on your credit report which harms your ability to borrow even further.