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
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:
--allPrimary--allSecondaryAPI requests
Restore all items from first-stage:
Restore all items from second-stage: