Description
This function deletes an email address.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
|
string |
Required The email account username or address. |
|
user |
flags |
string |
Whether to remove the mail account's home mail directory. If you do not specify a value, the function removes the mail account's home directory. |
|
passwd |
domain |
string |
The email account's domain. This parameter defaults to the cPanel account's main domain. |
A valid domain on the cPanel account. For example, example.com if the email address isuser@example.com. |
example.com |
skip_quota |
Boolean |
Whether to modify the mail account'squota file. This parameter defaults to 0. |
|
0 |
Returns
This function only returns metadata.