interface-delete-backup.php
18 lines
| 1 | <?php |
| 2 | |
| 3 | namespace BMI\Plugin\External\Contracts; |
| 4 | |
| 5 | // Exit on direct access |
| 6 | if (!defined('ABSPATH')) exit; |
| 7 | |
| 8 | interface DeleteBackup { |
| 9 | /** |
| 10 | * Delete a backup from the external storage. |
| 11 | * |
| 12 | * @param string $hash The hash of the backup file to delete. |
| 13 | * @return bool True if the deletion request was successfully processed; false otherwise. |
| 14 | * Note: The return value is not a reliable indicator of whether the target was actually deleted, |
| 15 | * as some deletion methods may report failure even when the deletion completes successfully. |
| 16 | * */ |
| 17 | public function deleteBackup($hash); |
| 18 | } |