Deleting Service Plans

The del operation is used to remove service plans.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet deleting service plans from Plesk database includes the del operation node:

<packet>
<service-plan>
   <del>
   ...
   </del>
</service-plan>
</packet>

 

The del node is presented by type DomainTemplateDeleteInputType (domain_template.xsd). Its graphical representation is as follows:

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.

 

Response Packet Structure

The del node of the output XML packet is of type DomainTemplateDeleteOutputType (domain_template.xsd) which is structured as follows:

 

Samples

This request packet deletes two service plans specified by ID.

<packet version="1.6.3.0">
<service-plan>
<del>
   <filter>
      <id>11</id>
      <id>12</id>
   </filter>
   <owner-login>JDoe</owner-login>
</del>
</service-plan>
</packet>

Response:

<packet version="1.6.3.0">
<service-plan>
<del>
   <result>
      <status>ok</status>
      <id>11</id>
   </result>
   <result>
      <status>ok</status>
      <id>12</id>
   </result>
</del>
</service-plan>
</packet>