Afthab, Mohammed Thanks for posting your question in Microsoft Q&A. When you add a custom domain name for Gateway endpoint, default gateway endpoint is also accessible (cannot be disabled). However, for other management endpoints, the default endpoint is no longer available (refer Considerations doc).
If you would like to disable the built-in domain for gateway endpoint, you would need to deploy APIM in internal VNET mode so that it is not registered in public DNS (only in internal load balancer). Checkout https://learn.microsoft.com/en-us/azure/api-management/virtual-network-concepts?tabs=stv2#dns doc for more info about external vs internal and other networking options. Note: this VNET feature requires either developer or premium tier. For any feedback, feel free to submit directly to our product team via https://aka.ms/apimwish and others with similar interests can upvote it too.
I hope this helps and let me know if you have any questions.
If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.