b2DeleteFileVersion: Delete B2 File Version.

Description Usage Arguments Details Value Examples

View source: R/b2DeleteFileVersion.R

Description

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

Usage

1
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.

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.

Value

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

Examples

1
2
3
4
5
## Not run: 
b2DeleteFileVersion(fileName = "nameOfTheFileToDelete",
 fileId = "Unique_identifier_of_the_file_to_delete")

## End(Not run)

backblazer documentation built on May 30, 2017, 6:15 a.m.