To hide Cash on Delivery (COD) payment method, go to the customization page, select your preferred criteria, and switch on "Cash on Delivery (COD)".
If you have the checkout in other languages, please add also the name of the Cash on Delivery (COD) payment method in the other languages as the following screen: