Skip to main content

entra group remove

Removes an Entra group

Usage

m365 entra group remove [options]

Alias

m365 aad group remove [options]

Options

-i, --id [id]

The ID of the Entra group. Specify either id or displayName but not both.

-n, --displayName [displayName]

The display name of the Entra group. Specify either id or displayName but not both.

-f, --force

Don't prompt for confirmation.

-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

Remove an Entra group by display name

m365 entra group remove --displayName Developers

Remove an Entra group by ID

m365 entra group remove --id 016bf125-195b-43c5-a1a0-28ccd3192c6d

Response

The command won't return a response on success.

CTRL + M