entra administrativeunit remove
Removes an administrative unit
Usage
m365 entra administrativeunit remove [options]
options
-i, --id [id]
The id of the administrative unit. Specify either
id
ordisplayName
but not both.-n, --displayName [displayName]
The display name of the administrative unit. Specify either
id
ordisplayName
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 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
To use this command you must be either Global Administrator or Privileged Role Administrator.
Examples
Remove an administrative unit by its id
m365 entra administrativeunit remove --id 03c4c9dc-6f0c-4c4f-a4e6-0c9ed80f54c7
Remove an administrative unit by it displayName
m365 entra administrativeunit remove --displayName 'Marketing Division'
Response
The command won't return a response on success