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

Remove-PnPPropertyBagValue

Bert Jansen|Last Updated: 2/20/2017
|
1 Contributor

Removes a value from the property bag

Syntax

Remove-PnPPropertyBagValue -Key <String>
                           [-Folder <String>]
                           [-Force [<SwitchParameter>]]
                           [-Web <WebPipeBind>]

Parameters

ParameterTypeRequiredDescription
KeyStringTrueKey of the property bag value to be removed
FolderStringFalseSite relative url of the folder. See examples for use.
ForceSwitchParameterFalse
WebWebPipeBindFalseThe web to apply the command to. Omit this parameter to use the current web.

Examples

Example 1

PS:> Remove-PnPPropertyBagValue -Key MyKey

This will remove the value with key MyKey from the current web property bag

Example 2

PS:> Remove-PnPPropertyBagValue -Key MyKey -Folder /MyFolder

This will remove the value with key MyKey from the folder MyFolder which is located in the root folder of the current web

Example 3

PS:> Remove-PnPPropertyBagValue -Key MyKey -Folder /

This will remove the value with key MyKey from the root folder of the current web

© 2017 Microsoft