Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 1005 Bytes

RemoveSPOWeb.md

File metadata and controls

39 lines (32 loc) · 1005 Bytes

#Remove-SPOWeb Removes a subweb in the current web ##Syntax

Remove-SPOWeb -Identity <WebPipeBind> [-Force [<SwitchParameter>]] [-Web <WebPipeBind>]
Remove-SPOWeb -Url <String> [-Force [<SwitchParameter>]] [-Web <WebPipeBind>]

##Parameters

Parameter Type Required Description
Force SwitchParameter False Do not ask for confirmation to delete the subweb
Identity WebPipeBind True Identity/Id/Web object to delete
Url String True The site relative url of the web, e.g. 'Subweb1'
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Remove-SPOWeb -Url projectA

Remove a web

###Example 2

PS:> Remove-SPOWeb -Identity 5fecaf67-6b9e-4691-a0ff-518fc9839aa0

Remove a web specified by its ID

###Example 3

PS:> Get-SPOSubWebs | Remove-SPOWeb -Force

Remove all subwebs and do not ask for confirmation