Table of contents
TOC
Collapse the table of content
Expand the table of content

Remove-PnPFolder

Bert Jansen|Last Updated: 2/16/2017

Deletes a folder within a parent folder

Syntax

Remove-PnPFolder -Name <String>
                 -Folder <String>
                 [-Force [<SwitchParameter>]]
                 [-Web <WebPipeBind>]

Parameters

ParameterTypeRequiredDescription
FolderStringTrueThe parent folder in the site
NameStringTrueThe folder name
ForceSwitchParameterFalse
WebWebPipeBindFalseThe web to apply the command to. Omit this parameter to use the current web.

Examples

Example 1

PS:> Remove-PnPFolder -Name NewFolder -Folder _catalogs/masterpage

Removes the folder 'NewFolder' from '_catalogsmasterpage'

© 2017 Microsoft