1

I am using the method to get list of object in calendar:

$web = $clientContext.Web
$list = $web.Lists.GetByTitle("Pages")
$clientContext.Load($list)
$clientContext.ExecuteQuery()

But, when getting all content of $list I am getting also the (Already) deleted objects from the Web portal (not showing anymore).

Is there any option to find these deleted objects and filter them?

Thanks Tal

  • Any update, please ? – Tal Jan 21 at 9:36
1

Why are you not simply navigating to the Web or Site Collection Recycle Bin?

Web Recycle Bin:
GEAR >> Site Content >> Recycle Bin

Site Collection Recycle Bin:
GEAR >> Site Settings >> Site Collection Administration >> Recycle Bin

If this is happening often, using code may make sense, but indicates that your permissions / governance need re-evaluation and rationalization.

Use the UI if this only happens occasionally.

  • Need to get it PowerShell, I need to know which has been deleted a which is not. – Tal Jan 16 at 11:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.