-
Notifications
You must be signed in to change notification settings - Fork 5
Solution Automation RemoveFileVersionAuto
Barbarur edited this page Feb 3, 2024
·
6 revisions
Solution Code: RemoveFileVersionAuto
Run the solution with and account with at least SharePoint Admin role.
Parameter | Type | Description |
---|---|---|
Delete all versions | Required Choice |
Delete all the versions except the current active one. Versions are deleted completely and not sent to the recycle bin. |
Keep few versions | Required Choice |
Number of versions to keep in case not required to delete them all. |
Number of versions to keep | Optional* | Any older version above will be remove. |
Recycle | Optional* | Removed versions will be sent to the recycle bin, if no selected they will be completely deleted. |
Recycle | Optional* | Deleted versions won't be sent to the recycle bin. |
- Collects the required Sites.
- Add account as Site Collection Admin.
- Collects the required Libraries.
- Collects the required Files.
- Iterates through each File and removes the required versions.
- Records the information for each action in a CSV file.
Sites Collections and Subsites
Document Libraries and Item Lists
Files and Items
Recycle bin
Users
Sites Collections and Subsites
Document Libraries and Item Lists
Files and Items
- Copy or Duplicate files across sites
- Check In files
- Remove file versions
- Restore files from Preservation Hold Library
- Delete files from Preservation Hold Library
Recycle bin
Users
Users