Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Remove-EntraDeletedApplication
Permanently delete a recently deleted application object from deleted items.
Syntax
Default (Default)
Remove-EntraDeletedApplication
[-ApplicationId] <String>
[<CommonParameters>]
Description
Permanently delete a recently deleted application object from deleted items. After an item is permanently deleted, it can't be restored.
For delegated scenarios, the calling user needs to have at least one of the following Microsoft Entra roles.
- To permanently delete deleted applications or service principals: Application Administrator, Cloud Application Administrator, or Hybrid Identity Administrator.
Examples
Example 1: Remove deleted application object
Connect-Entra -Scopes 'Application.ReadWrite.All'
$deletedApplication = Get-EntraDeletedApplication -SearchString 'My PowerShell Application'
Remove-EntraDeletedApplication -ApplicationId $deletedApplication.Id
This command removes recently deleted application. You can use the command Get-EntraDeletedApplication to get deleted application Id.
-ApplicationIdparameter specifies the Id of a deleted application.
Example 2: Remove deleted application using pipelining
Connect-Entra -Scopes 'Application.ReadWrite.All'
Get-EntraDeletedApplication -Filter "DisplayName eq 'My PowerShell Application'" | Remove-EntraDeletedApplication
This command removes recently deleted application using pipelining.
Parameters
-ApplicationId
The unique identifier of deleted application.
Parameter properties
| Type: | System.String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | ObjectId |
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
Outputs
System.Object
Related Links
Feedback
Was this page helpful?
