Share via

How to enable soft delete for blobs through java sdk?

Sashin Sahasra 21 Reputation points
2021-07-12T04:28:34.947+00:00

Currently, I am writing a script to enable soft delete option when making storage account through java sdk. Is there any approach to do this?

Azure Storage
Azure Storage

Globally unique resources that provide access to data management services and serve as the parent namespace for the services.

Azure Blob Storage
Azure Blob Storage

An Azure service that stores unstructured data in the cloud as blobs.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Sumarigo-MSFT 47,511 Reputation points Microsoft Employee Moderator
    2021-07-12T08:08:10.053+00:00

    @Sashin Sahasra Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    Currently it's in preview, Soft delete in accounts that have the hierarchical namespace feature enabled is currently in PREVIEW, and is available globally in all Azure regions. See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.

    To enroll in the preview, see this form.

    This article provide different options to enable Blob Soft delete and manage soft delete

    For more information on Azure Storage Java SDKs, see here
    Additional information: Azure/azure-sdk-for-java
    Azure-Samples/storage-dotnet-blob-soft-delete

    Hope this helps!
    Kindly let us know if the above helps or you need further assistance on this issue.

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.