Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Get-EntraDeletedApplication

Retrieves the list of previously deleted applications.

Syntax

GetQuery (Default)

Get-EntraDeletedApplication

 [-Filter <String>]
 [-All]
 [-Top <Int32>]
 [-Property <String[]>]
 [<CommonParameters>]

GetById

Get-EntraDeletedApplication

 -ApplicationId <String>
 [-Property <String[]>]
 [<CommonParameters>]

GetByValue

Get-EntraDeletedApplication

 [-SearchString <String>]
 [-All]
 [-Property <String[]>]
 [<CommonParameters>]

Description

The Get-EntraDeletedApplication cmdlet Retrieves the list of previously deleted applications.

Note: Deleted security groups are permanently removed and can't be retrieved.

Examples

Example 1: Get list of deleted applications

Connect-Entra -Scopes 'Application.Read.All'
Get-EntraDeletedApplication -Property Id, AppId, DisplayName, DeletedDateTime, DeletionAgeInDays | Select-Object Id, AppId, DisplayName, DeletedDateTime, DeletionAgeInDays | Format-Table -AutoSize
id displayName appId deletedDateTime DeletionAgeInDays
-- ----------- ----- --------------- -----------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb Contoso Fieldglass bbbbbbbb-1111-2222-3333-cccccccccccc 2/12/2025 11:07:07 AM 5
cccccccc-4444-5555-6666-dddddddddddd New Entra Application dddddddd-5555-6666-7777-eeeeeeeeeeee 2/12/2025 11:07:56 AM 5

This cmdlet retrieves the list of deleted applications.

Example 2: Get list of deleted applications using All parameter

Connect-Entra -Scopes 'Application.Read.All'
Get-EntraDeletedApplication -All | Select-Object Id, DisplayName, AppId, DeletedDateTime, DeletionAgeInDays | Format-Table -AutoSize
id displayName appId deletedDateTime DeletionAgeInDays
-- ----------- ----- --------------- -----------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb Contoso Fieldglass bbbbbbbb-1111-2222-3333-cccccccccccc 2/12/2025 11:07:07 AM 5
cccccccc-4444-5555-6666-dddddddddddd New Entra Application dddddddd-5555-6666-7777-eeeeeeeeeeee 2/12/2025 11:07:56 AM 5

This cmdlet retrieves the list of deleted applications using All parameter.

Example 3: Get top two deleted applications

Connect-Entra -Scopes 'Application.Read.All'
Get-EntraDeletedApplication -Top 2 | Select-Object Id, DisplayName, AppId, DeletedDateTime, DeletionAgeInDays | Format-Table -AutoSize
id displayName appId deletedDateTime DeletionAgeInDays
-- ----------- ----- --------------- -----------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb Contoso Fieldglass bbbbbbbb-1111-2222-3333-cccccccccccc 2/12/2025 11:07:07 AM 5
cccccccc-4444-5555-6666-dddddddddddd New Entra Application dddddddd-5555-6666-7777-eeeeeeeeeeee 2/12/2025 11:07:56 AM 5

This cmdlet retrieves top two deleted applications. You can use -Limit as an alias for -Top.

Example 4: Get deleted applications using SearchString parameter

Connect-Entra -Scopes 'Application.Read.All'
Get-EntraDeletedApplication -SearchString 'TestApp1'
DisplayName Id AppId SignInAudience PublisherDomain
----------- -- ----- -------------- ---------------
TestApp1 aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb bbbbbbbb-1111-2222-3333-cccccccccccc AzureADMyOrg contoso.com

This cmdlet retrieves deleted applications using SearchString parameter.

Example 5: Get deleted applications filter by display name

Connect-Entra -Scopes 'Application.Read.All'
Get-EntraDeletedApplication -Filter "displayName eq 'Contoso Fieldglass'" | Select-Object Id, AppId, DisplayName, SignInAudience, PublisherDomain, DeletedDateTime, DeletionAgeInDays | Format-Table -AutoSize
id appId displayName signInAudience publisherDomain deletedDateTime DeletionAgeInDays
-- ----- ----------- -------------- --------------- --------------- -----------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb bbbbbbbb-1111-2222-3333-cccccccccccc Contoso Fieldglass AzureADMyOrg contoso.com 2/12/2025 11:07:07 AM 5

This cmdlet retrieves deleted applications having specified display name.

Example 6: Get a specific deleted application using Application ID

Connect-Entra -Scopes 'Application.Read.All'
Get-EntraDeletedApplication -ApplicationId aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb | Select-Object Id, AppId, DisplayName, DeletedDateTime, DeletionAgeInDays | Format-Table -AutoSize
Id DisplayName AppId DeletedDateTime DeletionAgeInDays
-- ----------- ----- --------------- -----------------
aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb Contoso Fieldglass bbbbbbbb-1111-2222-3333-cccccccccccc 2/14/2025 11:07:07 AM 10

This cmdlet retrieves deleted applications with deletion age in days.

Parameters

-All

List all pages.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False

Parameter sets

-Filter

Retrieve only those deleted applications that satisfy the filter.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Property

Specifies properties to be returned

Parameter properties

Type:

System.String[]

Default value:None
Supports wildcards:False
DontShow:False
Aliases:Select

Parameter sets

-SearchString

Retrieve only those applications that satisfy the -SearchString value.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Top

The maximum number of applications returned by this cmdlet. The default value is 100.

Parameter properties

Type:System.Int32
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Limit

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

System.String

System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] System.Nullable`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

Outputs

System.Object

Related Links


Feedback

Was this page helpful?