This article documents the usage of the Cpanel::AddonDomain::deladdondomain function in relation to the cPanel interface. This tag can be used inside cPanel pages.
Cpanel::AddonDomain::deladdondomain
This tag will delete an addon domain and the associated sub domain.
<?cp AddonDomain::deladdondomain(% %,result,reason) domain=$FORM{'domain'},subdomain=$FORM{'subdomain'} ?>
This example will delete an addon domain based on the domain and subdomain variables passed from a form. The result of the operation will be outputted along with a reason for failure, if applicable.
Copyright 2007 cPanel Inc.