Skip to main content
Remove Content Type Mapping
Updated this week

Command

Remove-ContentTypeMapping

Description

The command to remove a content type mapping.

Index

Examples

Remove mappings

$mappingSettings = Set-ContentTypeMapping -Source Image -Destination Picture 
$mappingSettings = Set-ContentTypeMapping -MappingSettings $mappingSettings -Source Video -Destination Movie 
$mappingSettings = Set-ContentTypeMapping -MappingSettings $mappingSettings -Source "My Custom Content Type" -Ignore 
Remove-ContentTypeMapping -MappingSettings $mappingSettings -Source Image 
$mappingSettings  
PropertyMappings        : 
ContentTypeMappings     : My Custom Content Type -> <NO DESTINATION>
                          Video                  -> Movie  
UserAndGroupMappings    : 
PermissionLevelMappings : 
SiteTemplateMappings    :

Syntax

Remove-ContentTypeMapping-MappingSettings <MappingSettings>
-Source <String>
Remove-ContentTypeMapping-MappingSettings <MappingSettings>
-FileFromFileSystem <SwitchParameter>
Remove-ContentTypeMapping 
-MappingSettings <MappingSettings>
-FolderFromFileSystem <SwitchParameter>

Parameters

-FileFromFileSystem <SwitchParameter>

Specifies to remove the default content type for files coming from the file system.

Required?

True

Default value

Accept pipeline input?

false

Accept wildcard characters?

False

Parameter set name

DefaultFileContentType

Aliases

None

-FolderFromFileSystem <SwitchParameter>

Specifies to remove the default content type for folders coming from the file system.

Required?

True

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

DefaultFolderContentType

Aliases

None

-MappingSettings <MappingSettings>

Specifies the mapping settings.

Required?

True

Default value

None

Accept pipeline input?

True (ByValue, ByPropertyName)

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

-Source <String>

Specifies the source content type.

Required?

True

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

Default

Aliases

None

Did this answer your question?