Deleting FTP Accounts
Use the del operation to remove FTP accounts from Plesk database. You can use this operation for deleting particular FTP accounts defined by name or ID, for deleting all FTP accounts existing on particular sites, also defined by name or ID, or for deleting all FTP accounts existing on all sites you can manage. In the last case, Plesk Administrator deletes all additional FTP accounts created on the whole Plesk server, Plesk customer, in turn, deletes all additional FTP accounts created on his sites.
Request Packet Structure
A request XML packet deleting FTP account includes the del operation node:
The del node is presented by the FtpUserDelInputType complex type (
ftpuser.xsd). The node has the following graphical representation:
- The filter node is required. It indicates which FTP accounts are to be deleted with the request packet. Data type: FtpUserFilterType (
ftpuser.xsd). For information on this node structure, refer to Available Filters.
With one packet, you can delete as many different FTP accounts with different filtering rules as you want. To do so, use the required number of del nodes in the packet.
Response Packet Structure
The del node of the output XML packet is structured as follows:
- The result node is required. It wraps the response received from the server. Data type: resultFilterType (
- The status node is required. It specifies the execution status of the del operation. Data type: string. Allowed values: ok | error.
- The errcode node is optional. It is used to return the error code when the del operation fails. Data type: unsignedInt.
- The errtext node is optional. It is used to return the error message if the del operation fails. Data type: string.
- The filter-id node is optional. It returns the filtering rule. For more information, refer to the Available Filters section. Data type: anySimple.
- The id node is optional. It returns the unique identifier of the FTP account that has been deleted with the request packet. Data type: integer.
Deleting single FTP account
This packet deletes FTP account with name photo4.
Deleting multiple FTP accounts
This packet deletes FTP accounts with names ftpuser2, photo6.
Deleting all FTO accounts on a site
This packet deletes all FTP accounts existing on site example.com.
Deleting all FTP accounts that can be managed by Plesk user
This packet removes all FTP accounts that can be managed by Plesk user defined in HTTP headers of the packet.