Remove-PnPContentTypeFromList
SYNOPSIS
Removes a content type from a list.
SYNTAX
Remove-PnPContentTypeFromList -List <ListPipeBind> -ContentType <ContentTypePipeBind> [-Connection <PnPConnection>]
DESCRIPTION
Allows to remove a content type from a list.
EXAMPLES
EXAMPLE 1
Remove-PnPContentTypeFromList -List "Documents" -ContentType "Project Document"
This will remove a content type called "Project Document" from the "Documents" list.
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
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ContentType
The name of a content type, its ID or an actual content type object that needs to be removed from the specified list.
Type: ContentTypePipeBind
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-List
The name of the list, its ID or an actual list object the content type needs to be removed from.
Type: ListPipeBind
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False