Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 968 Bytes

RemovePnPFile.md

File metadata and controls

37 lines (31 loc) · 968 Bytes

#Remove-PnPFile Removes a file. ##Syntax

Remove-PnPFile [-Force [<SwitchParameter>]]
               [-Web <WebPipeBind>]
               -ServerRelativeUrl <String>
Remove-PnPFile [-Force [<SwitchParameter>]]
               [-Web <WebPipeBind>]
               -SiteRelativeUrl <String>

##Parameters

Parameter Type Required Description
Force SwitchParameter False
ServerRelativeUrl String True Server relative URL to the file
SiteRelativeUrl String True Site relative URL to the file
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:>Remove-PnPFile -ServerRelativeUrl /sites/project/_catalogs/themes/15/company.spcolor

Removes the file company.spcolor

###Example 2

PS:>Remove-PnPFile -SiteRelativeUrl _catalogs/themes/15/company.spcolor

Removes the file company.spcolor