function backup_migrate_destination_s3_compatible::_delete_file in Backup and Migrate S3 7
Delete from the s3 destination.
File
- ./
destinations.s3.inc, line 217 - Functions to handle the dropbox backup destination.
Class
- backup_migrate_destination_s3_compatible
- A destination for sending database backups to a Dropbox account.
Code
function _delete_file($file_id) {
$this
->s3_init();
try {
$this->s3
->deleteObject(array(
'Bucket' => $this
->s3_bucket(),
'Key' => $this
->s3_path($file_id),
));
} catch (S3Exception $e) {
drupal_set_message(t('There was an error deleting the remote file.'));
}
}