Description
This function deletes a Mailman mailing list.
Examples
LiveAPI PHP Class
$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$del_mailing_list = $cpanel->api1('Email', 'dellist', array('newlist') ); // Call the function.
LiveAPI Perl Module
my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $del_mailing_list = $cpliveapi->api1('Email', 'dellist', ['newlist'] ); # Call the function.
cPanel Tag System (deprecated)
Warning:
In cPanel & WHM version 11.30 and later, cPanel tags are deprecated. This example is present in order to help developers move from the old cPanel tag system to our LiveAPI.
We strongly recommend that you only use the LiveAPI system to call the cPanel APIs.
<cpanel Module="Email::dellist( $FORM('list') )">
Output (none)
This function does not return output.
Parameters
Parameter
|
Type
|
Description
|
Possible values
|
Example
|
list
|
string
|
Required
The mailing list name.
|
The name of a mailing list on the server, inlistname@example.com format.
|
listname@example.com
|
Returns
This function does not return output.