Removing Subdomain

The del operation is used to remove a subdomain from a site/subdomain.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

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:

SubdomainDeleteInputType

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).

 

 

Response Packet Structure

The del node of the output XML packet is structured as follows:

SubdomainDelOutputType

 

Possible Errors

 

 

Samples

Removing a single subdomain

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>

Removing multiple subdomains

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>