Skip to main 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.

--folder [folder]

Site-relative URL of the folder from which to remove the property bag value.

-f, --force

Don't prompt for confirming removal of property bag value.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Examples

Removes the value of the property from the property bag located the given site

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

Removes the value of the property from the property bag located in the given site root folder

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

Removes the value of the property from the property bag located in the given site document library

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

Removes the value of the property from the property bag located in folder in the given site document library

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

Removes the value of the property from the property bag located in the given site list

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

Response

The command won't return a response on success.

CTRL + M