Remove-PnPContentTypeFromDocumentSet

Tip

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

Removes a content type from a document set

Syntax

Remove-PnPContentTypeFromDocumentSet
      -ContentType <ContentTypePipeBind>
      -DocumentSet <DocumentSetPipeBind>
      [-Connection <PnPConnection>]
      [<CommonParameters>]

Examples

EXAMPLE 1

Remove-PnPContentTypeFromDocumentSet -ContentType "Test CT" -DocumentSet "Test Document Set"

This will remove the content type called 'Test CT' from the document set called ''Test Document Set'

EXAMPLE 2

Remove-PnPContentTypeFromDocumentSet -ContentType 0x0101001F1CEFF1D4126E4CAD10F00B6137E969 -DocumentSet 0x0120D520005DB65D094035A241BAC9AF083F825F3B

This will remove the content type with ID '0x0101001F1CEFF1D4126E4CAD10F00B6137E969' from the document set with ID '0x0120D520005DB65D094035A241BAC9AF083F825F3B'

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
-ContentType

The content type to remove. Either specify name, an id, or a content type object.

Type:ContentTypePipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DocumentSet

The document set to remove the content type from. Either specify a name, a document set template object, an id, or a content type object

Type:DocumentSetPipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False