Data.Cloud.AzureAPI.TAzureBlobService.DeleteBlob
Delphi
function DeleteBlob(ContainerName, BlobName: string; OnlySnapshots: Boolean = False; LeaseId: string = ''; ResponseInfo: TCloudResponseInfo = nil): Boolean;
C++
bool __fastcall DeleteBlob(System::UnicodeString ContainerName, System::UnicodeString BlobName, bool OnlySnapshots = false, System::UnicodeString LeaseId = System::UnicodeString(), Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.Cloud.AzureAPI.pas Data.Cloud.AzureAPI.hpp |
Data.Cloud.AzureAPI | TAzureBlobService |
Description
Deletes the specified blob, or deletes all of its snapshots.
DeleteBlob deletes the specified blob if OnlySnapshots
is False, or deletes only the blob's snapshots if OnlySnapShot
is True.
The following table describes the parameters:
Parameter | Description |
---|---|
|
The name of the container the blob is in. |
|
The name of the blob to delete. |
|
Set to True to delete all of the blob's snapshots, but not the blob. |
|
The LeaseId, required if the blob is locked. |
|
The optional class for storing response info into. |
The method returns True if the blob is deleted successfully, False otherwise.