Subscriptions can be deleted individually or in bulk by sending a del request packet to the Panel.
Request Packet Structure
A request XML packet that deletes subscriptions should include the del operation node:
The del node does not have a separate type, it is nested within the complex type (
domain_input.xsd). The del node has the following graphics representation:
- The filter node is required. It indicates subscriptions to be deleted. Data type: DomainFilterType (
domain_input.xsd). To see the structure of this node, proceed to topic Available Filters.
Response Packet Structure
The del node of the response packet is structured as follows:
- The result node is optional. It wraps the result of the requested del operation. It can be missing if some error occurs before the validation starts. Data type: resultFilterType (
- The status node is required. It returns the execution status of the del operation. Data type: string. Allowed values: ok | error.
- The errcode node is optional. It is used to return an error code when the del operation fails. Data type: unsignedInt.
- The errtext node is optional. Can be used to return an error message if the del operation fails. Data type: string.
- The filter-id node is optional. It is always present and used to return the parameter by which the subscription was filtered by in the request packet. Data type: anySimple.
- The id node is optional. It is missing if the request packet fails before the validation on the server side. If present, this node identifies the deleted subscription. Data type: integer.
Deleting multiple subscriptions under Administrator or under reseller
This request deletes two subscriptions:
To filter some subscriptions by id and others by name, use different
To delete all subscriptions registered in Plesk, the following packet can be used:
To delete multiple subscriptions, the request packet should filter them either by id, or by name. The following packet is invalid as it uses both id and name nodes within one filter:
To delete all subscriptions of a certain Plesk user, use ‘group’ filtering (see the Available Filters section for details). Plesk users whose subscriptions are deleted can be specified within one filter either by owner-id or by owner-login.
You cannot specify Plesk users by login and by id in one filter. Use different filtering rules instead.