Skip to content

spo web remove

Delete specified subsite


m365 spo web remove [options]


-u, --url <url>
URL of the subsite to remove
Do not prompt for confirmation before deleting the subsite
-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 full.
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
Runs command with verbose logging
Runs command with debug logging


Delete subsite without prompting for confirmation

m365 spo web remove --url --confirm


The command won't return a response on success.