Can anyone tell me the quickest way to delete a large number of documents from a site library if you are an administrator for the site? Any powershell commands?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
I always end up using "Open in Windows Explorer", as that's quicker for me than trying to script something. |
||||
|
|
|
If speed of deletion is critical for you (you have really large amount of data), use batch operations. This post could be helpful for you, you can easily adopt it to the PowerShell Script. Batch operations are more fast, I think few times faster. |
||||
|
|
|
Here is a PowerShell script to delete all the files and folders from a document library:
I can't take full credit for this code; it was heavily adapted from Vedran Rasol's answer to this question. |
|||
|
|
