Remove-PnPFileFromSiteTemplate
SYNOPSIS
Removes a file from a PnP Provisioning Template
SYNTAX
Remove-PnPFileFromSiteTemplate [-Path] <String> [-FilePath] <String>
[[-TemplateProviderExtensions] <ITemplateProviderExtension[]>] [-Experimental]
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
-Experimental
Runs this cmdlet on the experimental PnP.Core.Provisioning engine instead of PnP Framework. It needs more permissions than PnP Framework, and a .pnp package can only be opened by the engine that created it. See The experimental PnP.Core.Provisioning engine.
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-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