Table of Contents

Remove-PnPFileFromSiteTemplate

SYNOPSIS

Removes a file from a PnP Provisioning Template

SYNTAX

Remove-PnPFileFromSiteTemplate [-Path] <String> [-FilePath] <String>
 [[-TemplateProviderExtensions] <ITemplateProviderExtension[]>] 

DESCRIPTION

Allows to remove a file from a PnP Provisioning Template.

EXAMPLES

EXAMPLE 1

Remove-PnPFileFromSiteTemplate -Path template.pnp -FilePath filePath

Removes a file from an in-memory PnP Provisioning Template

PARAMETERS

-FilePath

The relative File Path of the file to remove from the in-memory template

Type: String
Parameter Sets: (All)

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Path

Filename to read the template from, optionally including full path.

Type: String
Parameter Sets: (All)

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

-TemplateProviderExtensions

Allows you to specify ITemplateProviderExtension to execute while saving the template.

Type: ITemplateProviderExtension[]
Parameter Sets: (All)

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Microsoft 365 Patterns and Practices