Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
577 views
in Technique[技术] by (71.8m points)

azure - Do not take into account soft delete for blobs

I have a Azure Storage Account and I have enabled soft delete for blobs.

Is is possible to call instant deletion (ignore the soft deletion period) for some specific blobs?

I am using Azure.Storage.Blob v12.7.0, but DeleteBlobIfExistsAsync or DeleteAsync have no extra parameters that I can use.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Unfortunately at the moment there is no built-in feature to permanent delete blobs with enabled soft-delete option (ignore the soft deletion period).

https://feedback.azure.com/forums/217298-storage/suggestions/35076274-permanent-deletion-of-soft-deleted-blobs-gdpr

There is a workaround: Disable the soft-deleted option. Select the Blob Containers via Microsoft Azure Storage Explorer, choose Active and deleted blobs. Undelete the deleted blobs and then remove it again Then blob is permanently deleted

This approach is described here

https://github.com/MicrosoftDocs/azure-docs/issues/13064

You can automate the above workaround with Azure.Storage.Blob v12.7.0


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...