How to remove unwanted App Permissions

john john 1,021 Reputation points
2021-02-20T10:42:55.403+00:00

Inside our online sharepoint tenant, i want to remove unwanted App Permission which were created during the development of some SharePoint add-ins, so i went to Admin center >> Apps >> App Permission:-

70218-appper.png

then i search for some apps using the app identifier >> click on delete, as follow:-

70253-apppermission.png

but after confirming the delete , i can still see/search the app permission identifier.. any advice how i can permanently delete unwanted App Permissions?

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JoyZ 18,111 Reputation points
    2021-02-22T06:53:20.907+00:00

    Hi @john john

    From your description, you want to remove the app completely from the tenant, please refer to:

    #Parameters  
    $AppCatalogSiteURL = "https://crescent.sharepoint.com/sites/Apps"  
    $AppName = "File Controller"  
        
    #Connect to SharePoint Online App Catalog site  
    Connect-PnPOnline -Url $AppCatalogSiteURL -UseWebLogin  
       
    #Get the from tenant App catalog  
    $App = Get-PnPApp -Scope Tenant | Where {$_.Title -eq $AppName}  
       
    #Remove an App from App Catalog Site  
    Remove-PnPApp -Identity $App.Id  
    

    More information for your reference:

    https://www.sharepointdiary.com/2019/09/sharepoint-online-how-to-remove-app.html

    https://learn.microsoft.com/en-us/powershell/module/sharepoint-pnp/remove-pnpapp?view=sharepoint-ps

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.