Azure Storage - Delete Blob with Snap Shot Fails - Error 409 Conflict
We were creating a snapshot each time we updated a blob to preserve the version of the blob. However when we tried to delete the blob we received Error 409 Conflict (error msg did not tell us why). When we changed the delete statement from await blockBlob.DeleteIfExistsAsync() to await blockBlob.DeleteIfExistsAsync(DeleteSnapshotsOption.IncludeSnapshots, null, null, null) the delete worked. Apparently having snapshots associated to a blob causes a delete conflict. Makes sense but can we have a more descriptive error message? Thanks!