Deleting Site Aliases

Use the delete operation to remove a specified site alias from Plesk database.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet removing the site aliases from Plesk database includes the delete operation node:

<packet version="1.6.3.0">
<site-alias>
<delete>
...
</delete>
</site-alias>
</packet>

 

The delete node graphical representation is as follows:

 

 

Response Packet Structure

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

 

 

Samples

Deleting a single site alias

This packet deletes the MyAlias.com alias:

<packet>
<site-alias>
   <delete>
      <filter>
             <name>MyAlias.com</name>
      </filter>
   </delete>
</site-alias>
</packet>
Deleting multiple site aliases

This packet deletes all site aliases from the primary sites MyPrimary.com and My2Primary.com.

<packet>
<site-alias>
   <delete>
      <filter>
             <site-name>MyPrimary.com</site-name>
             <site-name>My2Primary.com</site-name>            
      </filter>
   </delete>
</site-alias>
</packet>

 

This packet removes all site aliases from all sites on the server.

<packet>
<site-alias>
   <delete>
      <filter/>
   </delete>
</site-alias>
</packet>