The Get-AzDataLakeStoreDeletedItem cmdlet searches the deleted files or folders in Data Lake Store which match the given filter.
It displays the following attributes of the deleted items - OriginalPath, TrashDirPath, Type, CreationTime.
This could be a long running operation as it may have to search through millions of files in trash and could be run as a job.
Caution: Undeleting files is a best effort operation. There are no guarantees that a file can be restored once it is deleted. The use of this API is enabled via allowlisting.
If your ADL account is not allowlisted, then using this api will throw Not implemented exception. For further information and assistance please contact Microsoft support.
Examples
Example: Get details of a file from the Data Lake Store
Specifies the number of results the user wants to find. The query runs until it finds Count results or it searches through entire trash, whichever happens first.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.