Purge a File's Versions
A 3-step recipe with Backblaze. We can help you get access.
Recipe · 3 steps
Purge a File's Versions
with Backblaze
Find a file version by prefix and delete it.
- Log in to the B2 API to obtain the authorization token.
- List the file versions in the bucket matching the supplied prefix, newest version first.
- Delete the most recent version found, supplying both the fileName and fileId as the delete endpoint requires.
What you'll need to have ready
- bucketId: The bucket containing the file versions.
- prefix: File name prefix used to locate the version to delete.
For your developer
Arazzo workflow backblaze:purge-file-versions, 3 operations: authorizeAccount → listFileVersions → deleteFileVersion. Specs on APIs.io.