You can remove publishing to subdomain when you have added a custom domain.
Even if you continue to use the subdomain for testing purposes, you can avoid duplicate content by going to Site Settings > SEO > Disable Webflow Subdomain Indexing. Select that option.