I have a dns multitenant server for ERPNext.
I added a tenant [mynewdomain.com]
[mynewdomain.com] is not yet ready for release and use as all of the setup data is still being added and configured. This process will probably take 2 to 3 weeks.
In the mean time, I wanted to add a custom domain name to it so that I could work on it in the real environment but still not have it released to the users. So I ran this command:
bench setup add-domain --site [mynewdoamin.com] [myoldtestingdomain.net]
It worked as expected and I now have 2 different ways to access the erpnext system that is being configured. So to cut off access of the users to [mynewdomain.com], I temporarily removed the A record from the DNS records for that site. That left only one way to access the site which was [myoldtestingdomain.net]
That is exactly what I wanted… for now.
When I am done with all of the configuration settings and data loading I will remake the correct A record in the DNS records for [mynewdomain.com].
When I am ready to go live with the site, what command can I use to delete the custom domain [myoldtestingdomain.net] from the site?
I know I can delete the A record in the DNS records for it, but I also don’t want it laying around in my erpnext tenant. So I was wondering how I could delete that Custom Domain reference?
There does not appear to be a reference in the bench commands for this.
Thanks in advance.