How can I purge soft-deleted data from Azure Files Share

Huain Gomez 0 Reputation points
2024-07-11T13:35:00.5633333+00:00

I have a big amount of info in the Soft-Delete storage for Azure Files, how can I purge it so we don't get billed for seven days?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,301 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 20,207 Reputation points Microsoft Employee
    2024-07-11T16:52:33.48+00:00

    @Huain Gomez Thanks for posting your query on Microsoft Q&A.

    As per my understanding, you would like to disable soft delete and rather have the data purged immediately instead of being retained for the 7 days period. Please ensure you have the backups if needed before proceeding.

    To permanently delete a file share that’s been soft deleted in Azure Files, follow these steps:

    1. Undelete the share: First, undelete the share that you want to permanently delete.
    2. Disable soft delete: After undeleting the share, disable soft delete for that share.
    3. Delete the share again: Finally, delete the share once more to permanently remove it.

    Reference doc: https://learn.microsoft.com/en-us/azure/storage/files/storage-files-enable-soft-delete?tabs=azure-portal#disable-soft-delete

    Additional reading:

    1. Manage and restore soft-deleted blobs
    2. Enable and manage soft delete for containers
    3. Frequently asked questions on soft delete for file share

    If you have any questions, let me know in the "comments" and I would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase the visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments

Your answer

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