No Problem! Glad it was as simple as that. I'm making an internal report to verify the documentation on SubDomain::delsubdomain right now. Thanks for the heads up.
Regards,
-DavidN
UPDATE
Concerning API2's SubDomain::delsubdomain: I've test the call via XML-API in WHM/cPanel 11.27.77 and it works as expected (per existing documentation). So either the reported issue is a bug or some other arbitrary environment issue that is not know (from the brief discussion here); fonder for another thread or support ticket.
Permutations that worked to delete asub.mydomain.net
Code:
'asub.mydomain.net'
'asub'
'asub.mydomain.net_mydomain.net'
Existing documentation
SubDomain::delsubdomain
API Version: 2 - Click here for documentation
Description: Delete a subdomain.
Parameters:
domain (string)
The subdomain you wish to delete.
Returns:
<data>
<reason> A string that contains a success message or reason for failure.</reason>
<result> A boolean value indicating success or failure. '1' if successful. '0' if failed.</result>
</data>
If that doesn't work for someone, please open a new thread with an appropriate title (ie, SubDomain::delsubdomain) or open a support ticket.
Best Regards,
-DavidN