Forum Discussion

Test SharePoint's avatar
Test SharePoint
Brass Contributor
Oct 29, 2018
Solved

Powershell script fo deleting specific-files-from-sharepoint-on-premises-library error

I was going through article: http://romeodonca.com/deleting-specific-files-from-sharepoint-on-premises-library I am getting an issue in implementing it. can you please have a look intothe following ...
  • Matt Weston's avatar
    Matt Weston
    Oct 30, 2018

    Hi Test SharePoint the way those errors are cascading, I think it's purely down to the entries that are coming from the CSV, and that all of the other errors are as a result of single issue. Do you have a header in your CSV? In mine, I had a header of File, so my CSV looked like this:

     

    File

    https://contoso.sharepoint.com/sites/SiteA/Documents/File1.docx

    https://contoso.sharepoint.com/sites/SiteA/Documents/File1 Copy.docx

Resources