Remove-PnPContentType

Tip

We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Remove-PnPContentType.md to change this file.

Removes a content type from a web

Syntax

Remove-PnPContentType
      [-Identity] <ContentTypePipeBind>
      [-Force]
       [-Connection <PnPConnection>]
      [<CommonParameters>]

Examples

EXAMPLE 1

Remove-PnPContentType -Identity "Project Document"

This will remove a content type called "Project Document" from the current web

EXAMPLE 2

Remove-PnPContentType -Identity "Project Document" -Force

This will remove a content type called "Project Document" from the current web with force

Parameters

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:PnPConnection
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Specifying the Force parameter will skip the confirmation question.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Identity

The name or ID of the content type to remove

Type:ContentTypePipeBind
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False