Remove-SPOList

Removes a List from the specified Site.

Remove-SPOList -Web <SPOWebPipeBind> -Identity <SPOListPipeBind> [-Recycle [<SwitchParameter>]]

Parameters

1

ParameterRequiredTypeDescription
WebTrueSPOWebPipeBind

Specifies the identity of the Site containing the List 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.

IdentityTrueSPOListPipeBind

Specifies the identity of the List to delete.

The type must be a valid absolute URL, in the form http://contoso.sharepoint.com/site_name/lists/list_name, or an SPOList object, Microsoft.SharePoint.Client.List object, List title, or GUID representing the List ID.

RecycleFalseSwitchParameter

If specified the List will be recycled instead of deleted.

Detailed Description

Removes a List from the specified Site.

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.