Canceling a credit card usually has a negative impact on your credit score. That said, in some cases, it makes sense to get rid of credit card accounts. Keep in mind that during the recession caused by the pandemic, banks and credit card issuers are increasingly restricting credit.
During these times, maintaining existing credit is usually a good idea. If you have a good credit score and good finances, you should stick to a credit card and use it only occasionally to buy cheap things.