spo commandset remove¶
Remove a ListView Command Set that is added to a site.
Usage¶
m365 spo commandset remove [options]
Options¶
-u, --webUrl <webUrl>
- Url of the site.
-t, --title [title]
- The title of the ListView Command Set. Specify either
title
,id
orclientSideComponentId
. -i, --id [id]
- The id of the ListView Command Set. Specify either
title
,id
orclientSideComponentId
. -c, --clientSideComponentId [clientSideComponentId]
- The id of the ListView Command Set. Specify either
title
,id
orclientSideComponentId
. -s, --scope [scope]
- Scope of the ListView Command Set. Allowed values:
Site
,Web
,All
. Defaults toAll
. --confirm
- Don't prompt for confirming removal of the ListView Command Set
-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 isfull
. --query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text,csv,md
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
Remove a ListView Command Set by title.
m365 spo commandset remove --title "Some customizer" --webUrl https://contoso.sharepoint.com/sites/sales
Remove a ListView Command Set by id.
m365 spo commandset remove --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --webUrl https://contoso.sharepoint.com/sites/sales
Remove a ListView Command Set by clientSideComponentId.
m365 spo commandset remove --clientSideComponentId 7096cded-b83d-4eab-96f0-df477ed7c0bc --webUrl https://contoso.sharepoint.com/sites/sales
Response¶
The command won't return a response on success.