Skip to main content

spo storageentity remove

Removes tenant property stored on the specified SharePoint Online app catalog

Usage​

m365 spo storageentity remove [options]

Options​

-u, --appCatalogUrl [appCatalogUrl]

URL of the app catalog site. If not specified, the tenant app catalog URL will be used.

-k, --key <key>

Name of the tenant property to retrieve

-f, --force

Don't prompt for confirming removal of a tenant property

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, permissions, 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.

Remarks​

Tenant properties are stored in the app catalog site associated with that tenant. To remove a property, you can specify the absolute URL of the app catalog site. If not specified, the command will automatically resolve the tenant app catalog URL. If you specify the URL of a site different than the app catalog, you will get an access denied error.

info

To use this command you must be either SharePoint Administrator or Global Administrator.

Examples​

Remove the AnalyticsId tenant property using the tenant app catalog. Yields a confirmation prompt before actually removing the property

m365 spo storageentity remove -k AnalyticsId

Remove the AnalyticsId tenant property from a specific app catalog. Suppresses the confirmation prompt

m365 spo storageentity remove -k AnalyticsId --force -u https://contoso.sharepoint.com/sites/appcatalog

Response​

The command won't return a response on success.

More information​