Skip to content

spo propertybag remove

Removes specified property from the property bag

Usage

m365 spo propertybag remove [options]

Options

-u, --webUrl <webUrl>
The URL of the site from which the property should be removed
-k, --key <key>
Key of the property to be removed. Case-sensitive
-f, --folder [folder]
Site-relative URL of the folder from which to remove the property bag value
--confirm
Don't prompt for confirming removal of property bag value
-h, --help
output usage information
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text. Default text
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

Removes the value of the key1 property from the property bag located in site https://contoso.sharepoint.com/sites/test

m365 spo propertybag remove --webUrl https://contoso.sharepoint.com/sites/test --key key1

Removes the value of the key1 property from the property bag located in site root folder https://contoso.sharepoint.com/sites/test

m365 spo propertybag remove --webUrl https://contoso.sharepoint.com/sites/test --key key1 --folder / --confirm

Removes the value of the key1 property from the property bag located in site document library https://contoso.sharepoint.com/sites/test

m365 spo propertybag remove --webUrl https://contoso.sharepoint.com/sites/test --key key1 --folder '/Shared Documents'

Removes the value of the key1 property from the property bag located in folder in site document library https://contoso.sharepoint.com/sites/test

m365 spo propertybag remove --webUrl https://contoso.sharepoint.com/sites/test --key key1 --folder '/Shared Documents/MyFolder'

Removes the value of the key1 property from the property bag located in site list https://contoso.sharepoint.com/sites/test

m365 spo propertybag remove --webUrl https://contoso.sharepoint.com/sites/test --key key1 --folder /Lists/MyList