Remove domain alias

3 posts / 0 new
Last post
#1 Thu, 08/27/2015 - 07:39
vivianne

Remove domain alias

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.

Thu, 08/27/2015 - 08:46
andreychek

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

Thu, 08/27/2015 - 08:58
vivianne

That was the problem. Thank you!

Topic locked