spo group remove¶
Removes group from specific web
Usage¶
m365 spo group remove [options]
Options¶
-u, --webUrl <webUrl>
- Url of the web to remove the group from
--id [id]
- ID of the group to remove. Use ID or name but not both
--name [name]
- Name of the group to remove. Use ID or name but not both
--confirm
- Confirm removal of the group
-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¶
Removes group with id 5 from web https://contoso.sharepoint.com/sites/mysite
m365 spo group remove --webUrl https://contoso.sharepoint.com/sites/mysite --id 5
Removes group with name Team Site Owners from web https://contoso.sharepoint.com/sites/mysite
m365 spo group remove --webUrl https://contoso.sharepoint.com/sites/mysite --name "Team Site Owners"