You are here

function backup_migrate_destination_s3::_delete_file in Backup and Migrate 8.2

Same name and namespace in other branches
  1. 8.3 includes/destinations.s3.inc \backup_migrate_destination_s3::_delete_file()
  2. 6.3 includes/destinations.s3.inc \backup_migrate_destination_s3::_delete_file()
  3. 6.2 includes/destinations.s3.inc \backup_migrate_destination_s3::_delete_file()
  4. 7.3 includes/destinations.s3.inc \backup_migrate_destination_s3::_delete_file()
  5. 7.2 includes/destinations.s3.inc \backup_migrate_destination_s3::_delete_file()

Delete from the s3 destination.

Overrides backup_migrate_destination::_delete_file

File

includes/destinations.s3.inc, line 51
Functions to handle the s3 backup destination.

Class

backup_migrate_destination_s3
A destination for sending database backups to an s3 server.

Code

function _delete_file($file_id) {
  if ($s3 = $this
    ->s3_object()) {
    $s3
      ->deleteObject($this
      ->get_bucket(), $this
      ->remote_path($file_id));
  }
}