graph directoryextension remove
Removes a directory extension
Usage
m365 graph directoryextension remove [options]
Options
-i, --id [id]The ID of the directory extension to remove. Specify either
idorname, but not both.-n, --name [name]The name of the directory extension to remove. Specify either
idorname, but not both.--appId [appId]Application (client) ID of the Entra application where the directory extension is registered. Specify either
appId,appObjectIdorappName, but not multiple.--appObjectId [appObjectId]Object ID of the Entra application where the directory extension is registered. Specify either
appId,appObjectIdorappName, but not multiple.--appName [appName]The name of Entra application where the directory extension is registered. Specify either
appId,appObjectIdorappName, but not multiple.-f, --forceDon't prompt for confirmation before removing the directory extension
-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.
Permissions
- Delegated
- Application
| Resource | Permissions |
|---|---|
| Microsoft Graph | Application.ReadWrite.All |
| Resource | Permissions |
|---|---|
| Microsoft Graph | Application.ReadWrite.OwnedBy |
Examples
Remove a directory extension specified by name from an application specified by app object id and don't prompt for confirmation
m365 graph directoryextension remove --name extension_105be60b603845fea385e58772d9d630_githubworkaccount --appObjectId 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --force
Remove a directory extension specified by id from an application specified by app name and don't prompt for confirmation
m365 graph directoryextension remove --id 522817ae-5c95-4243-96c1-f85231fcbc1f --appName ContosoApp
Response
The command won't return a response on success.