Backblaze · Arazzo Workflow
Backblaze Tear Down a Bucket
Version 1.0.0
Authorize, list a bucket's file names, delete the first file version, then delete the empty bucket.
Provider
Workflows
teardown-bucket
Empty a file from a bucket and then delete the bucket.
Authorizes the account, lists the bucket's files and deletes the first file version found, then deletes the bucket itself.
1
authorize
authorizeAccount
Log in to the B2 API to obtain the accountId and authorization token.
2
listFiles
listFileNames
List the file names in the bucket to find a version to remove.
3
deleteFile
deleteFileVersion
Delete the first file version found so the bucket moves toward an empty state.
4
deleteBucket
deleteBucket
Delete the bucket. This succeeds only when the bucket no longer contains any file versions.