-
Notifications
You must be signed in to change notification settings - Fork 1
DeleteBucket
Craig edited this page Jan 1, 2024
·
2 revisions
<?php
use TechKat\BackBlazeB2\Client;
$keyID = '...';
$applicationKey = '...';
$client = new Client($keyID, $applicationKey);
$response = $client->deleteBucket([
'bucketId' => 'BUCKET_ID',
]);
return $response;During the deletion process, the listBucket method will be called with the forceRefresh parameter set to TRUE. This is to ensure the cache is updated with an accurate listing of remaining buckets.
The API response is what the deleted bucket metadata used to be.
Below is a list of all the available native API endpoints that this library currently supports:
- cancelLargeFile
- copyFile
- copyPart
- createBucket
- createKey
- deleteBucket
- deleteFileVersion
- deleteKey
- downloadFileById
- downloadFileByName
- finishLargeFile
- getDownloadAuthorization
- getFileInfo
- getUploadPartUrl
- getUploadUrl
- hideFile
- listBuckets
- listFileNames
- listFileVersions
- listKeys
- listParts
- listUnfinishedLargeFiles
- startLargeFile
- updateBucket
- updateFileLegalHold
- updateFileRetention
- uploadFile
- uploadPart
{ "accountId": "YOUR_ACCOUNT_ID", "bucketId": "BUCKET_ID", "bucketName": "This-Bucket-Is-So-Cool", "bucketType": "allPrivate", // ... }