Skip to main content

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

-f, --force

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 is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

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.

info

To use this command you must be either SharePoint Administrator or Global Administrator.

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

Response

The command won't return a response on success.

CTRL + M