Cpanel::AddonDomain::deladdondomain

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.


SYNOPSIS

Cpanel::AddonDomain::deladdondomain


DESCRIPTION

This tag will delete an addon domain and the associated sub domain.


VARIABLES

INPUT

subdomain (string)
This is the full name of the subdomain with the subdomain seperated from the root domain with a '_'. Format: subdomain_rootdomain.com

domain (string)
This is the name of the addon domain. Format: addondomain.com

OUTPUT

result
The result of the addon domain deletion process

reason
The reason for failure, if any.


EXAMPLES

<?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

Copyright 2007 cPanel Inc.