[FileVersion] Add and update batch delete cmdlets #3828
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before creating a pull request, make sure that you have read the contribution file located at
https://github.com/pnp/powerShell/blob/dev/CONTRIBUTING.md
Type
What is in this Pull Request ?
Test scenarios
Create DeleteOlderThanDays workitem on site
New-PnPSiteFileVersionBatchDeleteJob -DeleteBeforeDays 40
Get-PnPSiteFileVersionBatchDeleteJobProgress
Create CountLimits workitem on site
New-PnPSiteFileVersionBatchDeleteJob -MajorVersionLimit 10 -MajorWithMinorVersionsLimit 10
Get-PnPSiteFileVersionBatchDeleteJobProgress
Create AutomaticTrim workitem on site
New-PnPSiteFileVersionBatchDeleteJob -Automatic
Get-PnPSiteFileVersionBatchDeleteJobProgress
Remove workitem on site
Remove-PnPSiteFileVersionBatchDeleteJob
Get-PnPSiteFileVersionBatchDeleteJobProgress
Create DeleteOlderThanDays workitem on library
New-PnPLibraryFileVersionBatchDeleteJob -Identity "jsite1lib1" -DeleteBeforeDays 200
Get-PnPLibraryFileVersionBatchDeleteJobProgress -Identity "jsite1lib1"
Create CountLimits workitem on library
New-PnPLibraryFileVersionBatchDeleteJob -Identity "jsite1lib1" -MajorVersionLimit 10 -MajorWithMinorVersionsLimit 10
Get-PnPLibraryFileVersionBatchDeleteJobProgress -Identity "jsite1lib1"
Create AutomaticTrim workitem on library
New-PnPLibraryFileVersionBatchDeleteJob -Identity "jsite1lib1" -Automatic
Get-PnPLibraryFileVersionBatchDeleteJobProgress -Identity "jsite1lib1"
Remove workitem on library
Remove-PnPLibraryFileVersionBatchDeleteJob -Identity "jsite1lib1"
Get-PnPLibraryFileVersionBatchDeleteJobProgress -Identity "jsite1lib1"
Test results