Hi,
Please try these commands -
https://learn.microsoft.com/en-us/powershell/module/az.datalakestore/restore-azdatalakestoredeleteditem?view=azps-4.2.0
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Is there a way to recover accidently deleted folder in ADLS Gen 2?
Hi,
Please try these commands -
https://learn.microsoft.com/en-us/powershell/module/az.datalakestore/restore-azdatalakestoredeleteditem?view=azps-4.2.0
@Gunwant , Welcome to the Microsoft Q&A platform.
If it is production data that got deleted, recommended to reach out to Azure Support immediately. They may be able to recover the data if not too much time has elapsed.
Hope this helps. Do let us know if you any further queries.
----------------------------------------------------------------------------------------
Do click on "Accept Answer" and Upvote on the post that helps you, this can be beneficial to other community members.
UPDATED Answer:
Azure Data Lake Gen2 where Soft-delete is not enabled: If it is production data that got deleted, recommended to reach out to Azure Support immediately. They may be able to recover the data if not too much time has elapsed.
Manual recovery:
If self-recovery is not possible, the Azure Storage product team can attempt to recover the data. However, recovery attempts are possible only if the following two conditions are met. If the recovery target has been re-created with the same name since it was deleted, you'll need to provide a new folder that we can use to restore the recovered data. You'll be responsible for merging back the data to the original location.
Note: Because garbage collection can occur on our system at any time, we can't guarantee a successful recovery even if the preceding conditions are met. As part of our data privacy guarantee, we make sure that data deleted by customers is eventually overwritten.
Azure Data Lake Gen2 supports soft delete for bobs/containers. And as a best practice, it always recommended to enable soft delete which helps to self recover the deleted files for a specific period of time as per your configuration.
Self-recovery
If you have container or blob soft-delete enabled, you can recover the data if the data retention period has not expired. For step-by-step instructions, see:
The following table describes whether a feature is supported in a standard general-purpose v2 account when you enable a hierarchical namespace (HNS), NFS 3.0 protocol, or SFTP.
For more details, refer to Blob Storage feature support in Azure Storage accounts and Enable soft delete for blobs.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.