@aerocoders Thank you for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.
Based on the shared information, I understand that you want to transfer the App service domain out of Azure.
You can transfer the domain out of Azure using either PowerShell or through the Rest API by following the documentation steps mentioned in this blog post.
Hope this helps, let me know if you have any further questions on this.