Skip to content

spo web remove

Delete specified subsite


m365 spo web remove [options]


-u, --webUrl <webUrl>
URL of the subsite to remove
Do not prompt for confirmation before deleting the subsite
-h, --help
output usage information
--query [query]
JMESPath query string. See for more information and examples
-o, --output [output]
Output type. json,text,csv. Default json
Runs command with verbose logging
Runs command with debug logging


Delete subsite without prompting for confirmation

m365 spo web remove --webUrl --confirm