Removing Backup

Use the remove-file to remove a backup from the local repository.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet removing a backup from the local storage includes the remove-file operation node:

<packet>
<backup-manager>
   <remove-file>
...
   </remove-file>
</backup-manager>
</packet>

 

The remove-file node is presented by type BackupRemoveFileInput (backup.xsd), and its graphical representation is as follows:

Note: You should specify one of the mentioned nodes in a request packet.

Notes

You can remove backups stored in the local storage of a customer or webspace backups.

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

 

Response Packet Structure

The stop-backup node of the output XML packet is presented by type BackupRemoveFileOutput (backup.xsd) and structured as follows:

 

 

Samples

Removing backup from the local storage of a customer

The request packet removing backup MyBackup.bak from the local storage of the customer account with ID 114 looks as follows:

<packet>
<backup-manager>
   <remove-file>
      <customer-id>114</customer-id>
      <filename>MyBackup.bak</filename>
   </remove-file>
</backup-manager>
</packet>

 

Response:

<packet version="1.6.7.0">
  <backup-manager>
    <remove-file>
      <result>
        <status>ok</status>
      </result>
    </remove-file>
  </backup-manager>
</packet>