Remove-EntraApplicationPasswordCredential

Removes a password credential from an application.

Syntax

Remove-EntraApplicationPasswordCredential
      -ApplicationId <String>
      -KeyId <String>
      [<CommonParameters>]

Description

The Remove-EntraApplicationPasswordCredential cmdlet removes a password credential from an application in Microsoft Entra ID.

Examples

Example 1: Remove an application password credential

Connect-Entra -Scopes 'Application.ReadWrite.All','Application.ReadWrite.OwnedBy'
$application = Get-EntraApplication -Filter "displayName eq 'Contoso Helpdesk Application'"
$applicationPassword = Get-EntraApplicationPasswordCredential -ApplicationId $application.Id | Where-Object {$_.DisplayName -eq 'ERP App Password'}
Remove-EntraApplicationPasswordCredential -ApplicationId $application.Id -KeyId $applicationPassword.KeyId

This example demonstrates how to remove the password credential for an application.

  • ApplicationId Specifies the ID of the application. Use Get-EntraApplication to get application ObjectId value.
  • KeyId Specifies the ID of the password credential. Use Get-EntraApplicationPasswordCredential to retrieve a specific credential details.

Parameters

-ApplicationId

Specifies the ID of the application in Microsoft Entra ID.

Type:System.String
Aliases:ObjectId
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-KeyId

Specifies the ID of the password credential.

Type:System.String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False