delete snapshots of blob along with the blob

This commit is contained in:
Robert Lippens 2019-08-14 09:59:59 -07:00
parent 35b2e16c5c
commit 4ee4ba7a62
No known key found for this signature in database
GPG key ID: 9984DABBD3F82E8F

View file

@ -70,7 +70,7 @@ func (az *azureBlobStore) Delete(ctx context.Context, step int64) error {
return err
}
blobURL := az.containerURL.NewBlockBlobURL(fmt.Sprintf("%d", step))
_, err = blobURL.Delete(ctx, azblob.DeleteSnapshotsOptionNone, azblob.BlobAccessConditions{})
_, err = blobURL.Delete(ctx, azblob.DeleteSnapshotsOptionInclude, azblob.BlobAccessConditions{})
return err
}