Because the credit card can only be closed if all debts are paid off, as long as there are outstanding debts, your application for closing the account will be rejected by the bank. Therefore, you need to make sure that the credit card has paid off all the debts. You can go to the business hall or call the credit card customer service hotline to cancel your credit card.
I hope I can help you.