Skip to content

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

@milanholemans

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions