Remove-SPOWeb

Removes a Site from the current Site Collection.

Remove-SPOWeb -Identity <SPOWebPipeBind> [-Recurse [<SwitchParameter>]]

Parameters

1

ParameterRequiredTypeDescription
IdentityTrueSPOWebPipeBind

Specifies the identity of the Site to delete.

The type must be a valid server relative URL, in the form /site_name, or an SPOWeb object, Microsoft.SharePoint.Client.Web object, or GUID representing the Site ID.

RecurseFalseSwitchParameter

If the Site contains child Sites then recursively delete all child Sites.

Detailed Description

Removes a Site from the current Site Collection.

Copyright 2016 Falchion Consulting, LLC

> For more information on this cmdlet and others:

> http://blog.falchionconsulting.com/

> Use of this cmdlet is at your own risk.

> Gary Lapointe assumes no liability.

Examples

------------------EXAMPLE------------------

PS C:\> Remove-SPOWeb -Web "/childsite"

This example removes the childsite Site from the Site Collection.