Skip to content

Enhancement: add possibility to restore all items from site recycle bin #4726

Description

@milanholemans

Currently we can only restore specific items from a SharePoint site recycle bin with spo site recyclebinitem restore.
My suggestion is that we add following options:

Option Description
--allPrimary Restore all items from the first-stage recycle bin.
--allSecondary Restore all items from the second-stage recycle bin.

API requests

Restore all items from first-stage:

POST https://tenant.sharepoint.com/sites/project-x/_api/web/RecycleBin/RestoreAll

Restore all items from second-stage:

POST https://tenant.sharepoint.com/sites/project-x/_api/site/RecycleBin/RestoreAll

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions