-
Notifications
You must be signed in to change notification settings - Fork 4
Solution Automation RemoveFileVersionAuto
Barbarur edited this page Sep 6, 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. |
Keep number of versions | Optional* | Solution will keep the most recent chosen number of versions. |
Keep versions created after (UTC) | Optional* | Solution will keep the versions created after the selected point in time. |
Recycle | Optional* | Removed versions will be sent to the recycle bin, if no selected they will be completely deleted. |
Delete | 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