Skip to content

spo web remove

Delete specified subsite

Usage

spo web remove [options]

Options

Option Description
--help output usage information
-u, --webUrl <webUrl> URL of the subsite to remove
--confirm Do not prompt for confirmation before deleting the subsite
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging

Important

Before using this command, log in to a SharePoint Online site, using the spo login command.

Remarks

To delete a subsite, you have to first log in to a SharePoint site using the spo login command, eg. spo login https://contoso.sharepoint.com.

Examples

Delete subsite without prompting for confirmation

spo web remove --webUrl https://contoso.sharepoint.com/subsite --confirm