[BUG] Clear-PnpRecycleBinItem getting list threshold error when deleting a single item #3561
Unanswered
tobycouchman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When attempting to run a script to delete items defined in a csv file from a Sharepoint site we got the list threshold error.
To troubleshoot this we ran the following command to see if we could delete a single file and recieved the same error.
Clear-PnPRecycleBinItem -Identity fc13baab-902a-4e14-ae69-bbb51ce79520
The script we are running
`Connect-PnPOnline -Interactive -Url:$SiteUrl
@($(Import-Csv -Path:"$Path")).ForEach({$csv.Title) - $ ($csv.Id)"$csv.Title) - $ ($csv.Id)"
$csv = $PSItem
#Write-host -MessageData: "Delete item: $(
Write-Information -MessageData:"Delete item: $(
Clear-PnPRecycleBinItem -Identity $($csv.Id)
}) `
We do not get the error when running the Get-PnPRecycleBinItem command to collect the items for the CSV file portion of the script.
Beta Was this translation helpful? Give feedback.
All reactions