As always, the answer depends on your specific situation. If you have a relatively short credit history (10 years or less), then you should try to keep the card open since that old card adds valuable credit history to your credit profile. If you have a few cards that are the same age, closing one or two may not be a big deal. In particular, we suggest closing cards with annual fees if you have good credit since there are few reasons to pay for a card with annual fees.
If your credit history is longer than 10 years, closing older cards should not have much impact on your credit score. Just remember that consumers with good credit have 3-6 credit cards on average, so don't close them all.