Action item Remove File/Folder throws an error

Problem

You receive an error when you are trying to delete a redundant file or folder via the action item Remove File/Folder.

Solution

Open the Invoke-ActionItem PowerShell script and remove line 40 (“Remove-Item -Path $Path -Force -ErrorAction Stop”)

File location: C:\Automation Machine\%EnvironmentID%\config\ actionitems\cb03bfc1-5bcb-4911-82de-d9d18490cd7b\Invoke-ActionItem.ps1