spo tenant recyclebinitem remove¶
Removes the specified deleted Site Collection from Tenant Recycle Bin
Usage¶
m365 spo tenant recyclebinitem remove [options]
Options¶
-u, --siteUrl <siteUrl>
- URL of the site to remove
--wait
- Wait for the site collection to be removed before completing the command
--confirm
- Don't prompt for confirming removing the deleted site collection
-h, --help [help]
- Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isfull
. --query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text,csv,md
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Important
To use this command you have to have permissions to access the tenant admin site.
Remarks¶
Removing a site collection is by default asynchronous and depending on the current state of Microsoft 365, might take up to few minutes. If you're building a script with steps that require the site to be fully removed, you should use the --wait
flag. When using this flag, the m365 spo tenant recyclebinitem remove
command will keep running until it received confirmation from Microsoft 365 that the site has been fully removed.
Examples¶
Removes the specified deleted site collection from tenant recycle bin
m365 spo tenant recyclebinitem remove --siteUrl https://contoso.sharepoint.com/sites/team
Removes the specified deleted site collection from tenant recycle bin and wait for the removing process to complete
m365 spo tenant recyclebinitem remove --siteUrl https://contoso.sharepoint.com/sites/team --wait