There is an issue where you delete an domain/subdomain, then you unable to to add back and receive error as below:
Error from domain wrapper: domain is owned by another user.
Solution:
(1) First, check if there is any entry on path as below, if yes, remove it
/usr/local/apache/conf/httpd.conf
/var/cpanel/userdata/username/
/etc
/etc/userdomains
/etc/truesuerdomains
Shortcut, you can use command to grep it
grep “domain.com” *
(2) Check on the DNS if that is exist, remove it if it exist
/scripts/killdns domain
(3) restart the Cpanel service and have a try now
Bingo, should be able to add now 🙂