Learn R Programming

backblazer (version 0.1.0)

b2DeleteFileVersion: Delete B2 File Version.

Description

b2DeleteFileVersion deletes a version of a file in the user's account on the Backblaze B2 cloud storage product.

Usage

b2DeleteFileVersion(fileName, fileId)

Arguments

fileName
The name of the file to be deleted. File names may be obtained through the b2ListFileNames function in this package.
fileId
The unique identifier of the file to be deleted. File IDs may be obtained through the b2UploadFile, b2ListFileNames, or b2ListFileVersions functions in this package.

Value

If successful a list containing the fileId and fileName will be echoed back to the user.

Details

This function deletes a version of a file within the user's account on the Backblaze B2 cloud storage product. Files of the same name may have multiple versions stored on B2. If the deleted file version is the latest, and there are older versions of the same file, the most recent of these will become the latest version. The most recent file version is always the version downloaded if requested by name. Further details regarding this API call are available here:

https://www.backblaze.com/b2/docs/b2_delete_file_version.html

fileName and fileId are mandatory and must be user defined.

Examples

Run this code
## Not run: 
# b2DeleteFileVersion(fileName = "nameOfTheFileToDelete",
#  fileId = "Unique_identifier_of_the_file_to_delete")
# ## End(Not run)

Run the code above in your browser using DataLab