The del operation is used to remove a subdomain from a site/subdomain.
A request XML packet removing a subdomain from a site/subdomain includes the del operation node:
<packet version="1.5.2.0">
<subdomain>
<del>
...
</del>
</subdomain>
</packet>
The del node is presented by the SubdomainDeleteInputType (subdomain.xsd
). Its graphical representation is as follows:
The filter node is required. It specifies the filtering rule. For information on filters, refer to the Available Filters section. Data type: SubdomainFilterType (subdomain.xsd
).
The del node of the output XML packet is structured as follows:
common.xsd
).common.xsd
). Allowed values: ok|error
.common.xsd
).
Possible Errors
To remove the subdomain forum.example.com:
<packet>
<subdomain>
<del>
<filter>
<name>forum.example.com</name>
</filter>
</del>
</subdomain>
</packet>
Response:
<packet version="1.5.2.0">
<subdomain>
<del>
<result>
<status>ok</status>
<filter-id>13</filter-id>
<id>13</id>
</result>
</del>
</subdomain>
</packet>
To remove subdomains with IDs in Plesk database 2, 5 and 6:
<packet>
<subdomain>
<del>
<filter>
<id>2</id>
<id>5</id>
<id>6</id>
</filter>
</del>
</subdomain>
</packet>