Skip to main content

entra enterpriseapp remove

Deletes an enterprise application (or service principal)

Usage

m365 entra enterpriseapp remove [options]

Alias

m365 entra sp remove [options]

Options

-i, --id [id]

ID of the enterprise application.

-n, --displayName [displayName]

Display name of the enterprise application.

--objectId [objectId]

ObjectId of the enterprise application.

-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

Delete an enterprise application by application ID.

m365 entra enterpriseapp remove --id b2307a39-e878-458b-bc90-03bc578531d6 --force

Delete an enterprise application by display name.

m365 entra enterpriseapp remove --displayName "Contoso app"

Delete an enterprise application by object ID.

m365 entra enterpriseapp remove --objectId b2307a39-e878-458b-bc90-03bc578531dd

Response

The command won't return a response on success.

More information

CTRL + M