Skip to content

aad app remove

Removes an Azure AD app registration

Usage

m365 aad app remove [options]

Alias

m365 aad app delete [options]

Options

--appId [appId]
Application (client) ID of the Azure AD application registration to remove. Specify either appId, objectId or name
--objectId [objectId]
Object ID of the Azure AD application registration to remove. Specify either appId, objectId or name
--name [name]
Name of the Azure AD application registration to remove. Specify either appId, objectId or name
--confirm:
Don't prompt for confirmation to remove the app
-h, --help
output usage information
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Remarks

For best performance use the objectId option to reference the Azure AD application registration to remove. If you use appId or name, this command will first need to find the corresponding object ID for that application.

If the command finds multiple Azure AD application registrations with the specified app name, it will prompt you to disambiguate which app it should use, listing the discovered object IDs.

Examples

Remove the Azure AD application registration by its app (client) ID

m365 aad app remove --appId d75be2e1-0204-4f95-857d-51a37cf40be8

Remove the Azure AD application registration by its object ID

m365 aad app remove --objectId d75be2e1-0204-4f95-857d-51a37cf40be8

Remove the Azure AD application registration by its name. Will NOT prompt for confirmation before deleting.

m365 aad app remove --name "My app" --confirm