Follow the steps here to create an Apple ID without a payment method, or remove the payment method from an existing Apple ID.
Create or use your Apple ID without a payment method - Apple Support
Note that if you have an active subscription, or your payment method was declines at any point, you will need to make it verifiable again before you can remove it.