spo feature disable
Disables a feature for the specified site or web
Usage
m365 spo feature disable [options]
Options
-u, --webUrl <webUrl>
The URL of the site or web for which to disable the feature.
-i, --id <id>
The ID of the feature to disable.
-s, --scope [scope]
Scope of the Feature to disable. Allowed values:
Site
,Web
. Defaults toWeb
.--force
Specifies whether to continue if an error occurs when disabling the feature.
-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 isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
If the specified url doesn't refer to an existing site collection, you will get a "404 FILE NOT FOUND"
error.
Examples
Disable site feature.
m365 spo feature disable --webUrl https://contoso.sharepoint.com/sites/salis --id 915c240e-a6cc-49b8-8b2c-0bff8b553ed3 --scope Site
Disable web feature (with force to ignore errors).
m365 spo feature disable --webUrl https://contoso.sharepoint.com/sites/salis --id 00bfea71-5932-4f9c-ad71-1557e5751100 --scope Web --force
Response
The command won't return a response on success.