Data.Cloud.AmazonAPI.TAmazonStorageService.DeleteObjectVersion
Delphi
function DeleteObjectVersion(const BucketName, ObjectName, VersionId: string; ResponseInfo: TCloudResponseInfo = nil; BucketRegion: TAmazonRegion = amzrNotSpecified): Boolean;
C++
bool __fastcall DeleteObjectVersion(const System::UnicodeString BucketName, const System::UnicodeString ObjectName, const System::UnicodeString VersionId, Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0), TAmazonRegion BucketRegion = (TAmazonRegion)(0x0));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.Cloud.AmazonAPI.pas Data.Cloud.AmazonAPI.hpp |
Data.Cloud.AmazonAPI | TAmazonStorageService |
Description
Deletes the specified object's version from the given bucket.
You must be the bucket owner to call DeleteObjectVersion. If the specified version is a delete marker and you have provided a ResponseInfo instance, then an x-amz-marker header will be added with a value of True.
If MFA Delete is enabled, then this call will need to be made over HTTPS and values must be set on the connection for the MFA Serial Number and MFA Authentication Code.
The method returns True if successful, and False otherwise.
The following table shows the significance of the parameters:
Parameter | Description |
---|---|
|
The name of the bucket to delete the object version from. |
|
The name of the object to delete a version of. |
|
The name of the object to delete. |
|
The optional class for storing response info into. |
See Also
- Data.Cloud.AmazonAPI.TAmazonStorageService.CopyObject
- Data.Cloud.AmazonAPI.TAmazonStorageService.GetObject
- Data.Cloud.AmazonAPI.TAmazonStorageService.UploadObject
- Data.Cloud.AmazonAPI.TAmazonStorageService.GetObjectACL
- Data.Cloud.AmazonAPI.TAmazonStorageService.DeleteObject
- Introduction to Amazon S3 (amazonwebservices.com)