Description
This function deletes an email account.
Warning:
- UAPI (recommended) —
Email::delete_pop
— This function deletes an email address. - cPanel API 2 —
Email::delpop
— This function deletes an email account.
Examples
This function does not return output.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
|
string |
Required The email account name. |
The email account name. For example, user if the email address is user@example.com. |
user |
flags |
string |
Whether to remove the email address from the domain's passwd file. Important: While this parameter is not required, we strongly recommend that you include it when you call the function. |
passwd |
passwd |
domain |
string |
Required The email account's domain. |
The domain that corresponds to the email account. For example, example.com if the email address isuser@example.com. |
example.com |
Returns
This function does not return output.