Skip to main content

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.

-f, --force

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 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 group with id from the specified web.

m365 spo group remove --webUrl https://contoso.sharepoint.com/sites/mysite --id 5

Removes group with name from the specified web.

m365 spo group remove --webUrl https://contoso.sharepoint.com/sites/mysite --name "Team Site Owners"

Response

The command won't return a response on success.

CTRL + M