Today I have another cpanel problem. Someone manage to add a domain as parking one and after this manage to create a main account also . Because the parking domain was first on httpd.conf vhosts when I was trying to access domain actually vhost was on parked one. Â When I try to delete the parking from account the title of this subject was the error of the cpanel.
“There was a problem removing the alias. Park::unpark( ) failed: You cannot unpark a user’s main domain name.”
So how to fix this ?
Well first of all you will have a dns1 ( line on /var/cpanel/users/useraccount )
I delete this line but wasn’t enough .
After some search I find out that is also located into
/var/cpanel/userdata/username/
There are some files that they say not to modify them , but comparing two files one with parked and one without I figure it out what is the syntax. So I made a backup of original files and modify those from there  and delete parked domain .
After this you must run
/scripts/updateuserdomains
After I rebuild httpd.conf the domain was ok .
/scripts/rebuildhttpdconf
Hope this article will give some hint for someone else also .
The link that help me was from here
https://forums.cpanel.net/threads/error-from-domain-wrapper-subdomain-does-not-exist-for-user-solution.221782/
Also it appear this will influence /etc/userdatadomains