This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
Hello,
How can I delete only the domain alias via the remote.api?
I try with "virtual-server/remote.cgi?program=delete-domain&domain=domain_alias_name&user=username"
but it deletes the domain too?
Thanks.
Howdy,
The problem may be in passing in the user... you shouldn't need that parameter.
Using the command line API, I just tested that this successfully deletes an alias, and not the parent domain:
virtualmin delete-domain --domain test2.com
That was the problem. Thank you!