Skip to main content

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 id or name, but not both.

-n, --name [name]

The name of the directory extension to remove. Specify either id or name, but not both.

--appId [appId]

Application (client) ID of the Entra application where the directory extension is registered. Specify either appId, appObjectId or appName, but not multiple.

--appObjectId [appObjectId]

Object ID of the Entra application where the directory extension is registered. Specify either appId, appObjectId or appName, but not multiple.

--appName [appName]

The name of Entra application where the directory extension is registered. Specify either appId, appObjectId or appName, but not multiple.

-f, --force

Don'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, 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 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.

More information

CTRL + M