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
idordisplayNamebut not both.-n, --displayName [displayName]The display name of the administrative unit. Specify either
idordisplayNamebut not both.-f, --forceDon'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,permissions,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.--verboseRuns command with verbose logging.
--debugRuns command with debug logging.
Remarks
To use this command you must be either Global Administrator or Privileged Role Administrator.
Permissions
- Delegated
- Application
| Resource | Permissions |
|---|---|
| Microsoft Graph | AdministrativeUnit.ReadWrite.All |
| Resource | Permissions |
|---|---|
| Microsoft Graph | AdministrativeUnit.ReadWrite.All |
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