Remove-SPOContentType

Adds a new content type to an existing List.

Remove-SPOContentType -Web <SPOWebPipeBind> [-List [<SPOListPipeBind>]] -ContentType <SPOContentTypePipeBind>

Parameters

1

ParameterRequiredTypeDescription
WebTrueSPOWebPipeBind

Specifies the identity of the Site containing the Content Type or List containing the Content Type to remove the Content Type from.

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.

ListFalseSPOListPipeBind

Specifies the List to remove the Content Type from.

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.

ContentTypeTrueSPOContentTypePipeBind

Sets a value that specifies the Content Type to remove. The type must be a valid name, Content Type ID, Microsoft.SharePoint.Client.ContentType object or SPOContentType object.

Detailed Description

Adds a new content type to an existing List.

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-SPOContentType -Web "/" -List "Documents" -ContentType "My Content Type"

This example removes a content type with the name of My Content Type from the Documents list.