Usage
m365 spo site recyclebinitem remove [options]
Description
Permanently deletes specific items from the site recycle bin
Options
| Option |
Description |
-u, --siteUrl <siteUrl> |
URL of the site where the recycle bin is located. |
-i, --ids <ids> |
Comma separated list of item IDs. |
--confirm |
Don't prompt for confirmation. |
Examples
Permanently remove 2 specific items from the recycle bin
m365 spo site recyclebinitem remove --siteUrl https://contoso.sharepoint.com/sites/sales --ids "06ca4fe4-3048-4b76-bd41-296fed4c9881,d679c17b-d7b8-429a-9307-34e1d9e631e7"
Permanently remove 2 specific items from the recycle bin and skip the confirmation prompt
m365 spo site recyclebinitem remove --siteUrl https://contoso.sharepoint.com/sites/sales --ids "06ca4fe4-3048-4b76-bd41-296fed4c9881,d679c17b-d7b8-429a-9307-34e1d9e631e7" --confirm
Default properties
No response
Additional Info
Originates from #4694
API request:
POST https://tenant.sharepoint.com/sites/project-x/_api/web/recycleBin('<item GUID>')/DeleteObject
For performance reasons, I suggest that we use SharePoint batch requests to remove all items.
Docs
Let's also add a remark that when a user wants to move an item to the 2nd stage recycle bin, that he or she should use spo site recyclebinitem move.
Usage
m365 spo site recyclebinitem remove [options]
Description
Permanently deletes specific items from the site recycle bin
Options
-u, --siteUrl <siteUrl>-i, --ids <ids>--confirmExamples
Permanently remove 2 specific items from the recycle bin
m365 spo site recyclebinitem remove --siteUrl https://contoso.sharepoint.com/sites/sales --ids "06ca4fe4-3048-4b76-bd41-296fed4c9881,d679c17b-d7b8-429a-9307-34e1d9e631e7"Permanently remove 2 specific items from the recycle bin and skip the confirmation prompt
m365 spo site recyclebinitem remove --siteUrl https://contoso.sharepoint.com/sites/sales --ids "06ca4fe4-3048-4b76-bd41-296fed4c9881,d679c17b-d7b8-429a-9307-34e1d9e631e7" --confirmDefault properties
No response
Additional Info
Originates from #4694
API request:
For performance reasons, I suggest that we use SharePoint batch requests to remove all items.
Docs
Let's also add a remark that when a user wants to move an item to the 2nd stage recycle bin, that he or she should use
spo site recyclebinitem move.