This article documents the usage of the Cpanel::SubDomain::delsubdomain function in relation to the cPanel interface. This tag can be used inside cPanel pages.
Cpanel::SubDomain::delsubdomain
This function will delete a specified subdomain and output the result of the deletion and a reason for failure, if any.
<?cp SubDomain::delsubdomain(% %,result,reason) domain=$FORM{'domain'} ?>
This example will delete a subdomain specified in a form and output the result of the deletion and a reason for failure, if any.
Copyright 2007 cPanel Inc.