BlobBatch.DeleteBlob Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DeleteBlob(String, String, BatchDeleteBlobOptions) |
The DeleteBlob(String, String, BatchDeleteBlobOptions) operation marks the specified blob or snapshot for deletion. The blob is later deleted during garbage collection which could take several minutes. Note that in order to delete a blob, you must delete all of its
snapshots. You can delete both at the same time using
IncludeSnapshots in For more information, see Delete Blob. |
DeleteBlob(Uri, DeleteSnapshotsOption, BlobRequestConditions) |
The DeleteBlob(Uri, DeleteSnapshotsOption, BlobRequestConditions) operation marks the specified blob or snapshot for deletion. The blob is later deleted during garbage collection which could take several minutes. Note that in order to delete a blob, you must delete all of its snapshots. You can delete both at the same time using IncludeSnapshots. For more information, see Delete Blob. |
DeleteBlob(String, String, BatchDeleteBlobOptions)
- Source:
- BlobBatch.cs
- Source:
- BlobBatch.cs
The DeleteBlob(String, String, BatchDeleteBlobOptions) operation marks the specified blob or snapshot for deletion. The blob is later deleted during garbage collection which could take several minutes.
Note that in order to delete a blob, you must delete all of its
snapshots. You can delete both at the same time using
IncludeSnapshots in options
.
For more information, see Delete Blob.
public virtual Azure.Response DeleteBlob (string blobContainerName, string blobName, Azure.Storage.Blobs.Batch.BatchDeleteBlobOptions options = default);
abstract member DeleteBlob : string * string * Azure.Storage.Blobs.Batch.BatchDeleteBlobOptions -> Azure.Response
override this.DeleteBlob : string * string * Azure.Storage.Blobs.Batch.BatchDeleteBlobOptions -> Azure.Response
Public Overridable Function DeleteBlob (blobContainerName As String, blobName As String, Optional options As BatchDeleteBlobOptions = Nothing) As Response
Parameters
- blobContainerName
- String
The name of the container containing the blob to delete.
- blobName
- String
The name of the blob to delete.
- options
- BatchDeleteBlobOptions
Optional parameters for the delete options.
Returns
A Response on successfully marking for deletion. The response cannot be used until the batch has been submitted with SubmitBatchAsync(BlobBatch, Boolean, CancellationToken).
Applies to
DeleteBlob(Uri, DeleteSnapshotsOption, BlobRequestConditions)
- Source:
- BlobBatch.cs
- Source:
- BlobBatch.cs
The DeleteBlob(Uri, DeleteSnapshotsOption, BlobRequestConditions) operation marks the specified blob or snapshot for deletion. The blob is later deleted during garbage collection which could take several minutes.
Note that in order to delete a blob, you must delete all of its snapshots. You can delete both at the same time using IncludeSnapshots.
For more information, see Delete Blob.
public virtual Azure.Response DeleteBlob (Uri blobUri, Azure.Storage.Blobs.Models.DeleteSnapshotsOption snapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, Azure.Storage.Blobs.Models.BlobRequestConditions conditions = default);
abstract member DeleteBlob : Uri * Azure.Storage.Blobs.Models.DeleteSnapshotsOption * Azure.Storage.Blobs.Models.BlobRequestConditions -> Azure.Response
override this.DeleteBlob : Uri * Azure.Storage.Blobs.Models.DeleteSnapshotsOption * Azure.Storage.Blobs.Models.BlobRequestConditions -> Azure.Response
Public Overridable Function DeleteBlob (blobUri As Uri, Optional snapshotsOption As DeleteSnapshotsOption = Azure.Storage.Blobs.Models.DeleteSnapshotsOption.None, Optional conditions As BlobRequestConditions = Nothing) As Response
Parameters
- snapshotsOption
- DeleteSnapshotsOption
Specifies options for deleting blob snapshots.
- conditions
- BlobRequestConditions
Optional BlobRequestConditions to add conditions on deleting this blob.
Returns
A Response on successfully marking for deletion. The response cannot be used until the batch has been submitted with SubmitBatchAsync(BlobBatch, Boolean, CancellationToken).