Skip to content

Solution Automation RemovePHLItemAuto

Barbarur edited this page Aug 14, 2024 · 2 revisions

Delete files from the Preservation Hold Library

Solution Code: RemovePHLItemAuto

Description

Delete files from the Preservation Hold Library across the selected sites.

Requirements

Run the solution with and account with at least SharePoint Admin role. Target sites should be excluded from the retention policy applied on them.

Parameters

Actions
Parameter Type Description
Delete Required
Choice
Files will be hard deleted from the target sites.
Recycle Required
Choice
Files will be sent to the recycle bin of the target sites.

How this Solution works

  1. Collects the required Sites.
  2. Add account as Site Collection Admin.
  3. Collects the Preservation Hold Library.
  4. Delete/Recycle the required Items in the PHL.
  5. Records the information for each action in a CSV file.
Clone this wiki locally