Thank you for reaching out to the QnA community.
The Primary Entra domain is the default domain for new user when new accounts are created. Changing the primary domain does not change the domain for existing accounts.
https://learn.microsoft.com/en-us/entra/identity/users/domains-manage#set-the-primary-domain-name-for-your-microsoft-entra-organization
You can delete custom domain names from your tenant, Not the initial onmicrosoft.com domain.
https://learn.microsoft.com/en-us/entra/identity/users/domains-manage#delete-a-custom-domain-name
If you are changing the users domain in their azure account to the verified primary domain they can log in to their device with the new UPN. It should use the same profile.
Test it out by changing a users domain account and log in to an Entra Joined device. The account should use the existing profile.
Note when switching users domain in azure it can take a few minutes before the new domain upn will log in successfully.
I hope this helps to resolve your query. Please "Accept the answer" if the information helped you. This will help us and others in the community as well.