Description
This function deletes an FTP account.
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 |
domain |
string |
The user's associated domain. Note: We introduced this parameter in cPanel & WHM version 54. This parameter defaults to the cPanel account's primary domain. |
A domain that the cPanel account owns. |
example.com |
user |
string |
Required The FTP account's username. |
An FTP username on the cPanel account. |
weeones |
destroy |
Boolean |
Whether to delete the FTP account's home directory. This value defaults to 0. |
|
1 |
Returns
This function only returns metadata.