Trying to delete files through power shell based on CSV column input
I am trying to delete files using PowerShell script and taking files in put details from CSV file. CSV File- Below is PowerShell code. $files = Get-Content "C:\DeleteFiles\FilesPresent1.csv" foreach ($file in $files) { Remove-Item -Path $file.ServerRelativeUrl.Trim() -Force } Write-Host -foregroundcolor yellow "Delete action complete" But still i am not able achieve this, can any one… Read More Trying to delete files through power shell based on CSV column input