spo site remove
Removes the specified site
Usage
m365 spo site remove [options]
Options
-u, --url <url>
URL of the site.
--skipRecycleBin
Set to directly remove the site without moving it to the recycle bin.
--fromRecycleBin
Set to remove the site from the recycle bin.
-f, --force
Don't prompt for confirmation.
-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 isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
If the argument --fromRecycleBin
is passed, the selected site will be permanently removed even if it's a groupified one.
To use this command you must be a Global or SharePoint administrator.
Examples
Remove the specified site and place it in the recycle bin.
m365 spo site remove --url https://contoso.sharepoint.com/sites/demosite
Remove the site without moving it to the recycle bin.
m365 spo site remove --url https://contoso.sharepoint.com/sites/demosite --skipRecycleBin
Remove the previously deleted site from the recycle bin.
m365 spo site remove --url https://contoso.sharepoint.com/sites/demosite --fromRecycleBin
Response
The command won't return a response on success.