4

This may be a newbie question or it may be an oversight by Microsoft. Most likely the former, so if somebody could instruct me on how to Remove an App from the Modern view (Site Contents), that would be much appreciated. I'm using SharePoint Online.

Classic View:

Classic SharePoint App removal


Modern View:

Modern View. How do I remove an app?

5

This is the official documentation on how to remove an App however it looks to be out-dated.

https://support.office.com/en-gb/article/Remove-an-app-from-a-site-03198d1b-c33b-498d-9469-af641a587d6c

What looks like an oversight on Microsoft's part that this option is missing when in the "Modern" view.

You can click the "Return to classic SharePoint" bottom right then remove the app in the normal way.

No option to Remove apps / add-ons in the Modern SharePoint View

(If you close and re-open the browser you will be back in Modern view).

I hope they correct the documentation soon and also fix this bug before removing the ability to switch back to "Classic SharePoint"

1
Prerequisites: SharePoint Online Client Components SDK

[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client")
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Client.Runtime")


Function Get-ClientContext([string]$Url,[string]$UserName,[string]$Password)
{
    $SecurePassword = $Password | ConvertTo-SecureString -AsPlainText -Force
    $context = New-Object Microsoft.SharePoint.Client.ClientContext($Url)
    $context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($UserName, $SecurePassword)
    return $context
}


Function Uninstall-AppInstance([Microsoft.SharePoint.Client.ClientContext]$Context,[Guid]$AppInstanceId)
{
    $appInst = $Context.Web.GetAppInstanceById($AppInstanceId)
    $appInst.Uninstall()
    $context.ExecuteQuery()
 }



$UserName = "jdoe@contoso.onmicrosoft.com"
$Password = Read-Host -Prompt "Enter the password"    
$Url = "https://contoso.sharepoint.com/"
$AppInstanceid = New-Object Guid("XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX")  #specify App Instance Id here

$context = Get-ClientContext -Url $Url -UserName $UserName -Password $Password
Uninstall-AppInstance -Context $context -AppInstanceId $AppInstanceid
$context.Dispose()

Office 365: powershell script to uninstall the sharepoint app

  • I like Powershell and I shall test it supermode, but is there really no way in modern view? – Colbs Apr 28 '17 at 3:46
  • you should normally have the option to delete. perhaps check your permission. instantquick.com/index.php/… – Supermode Apr 28 '17 at 4:16
  • 1
    That link only shows how to delete from Classic View. +2 if you can find me an answer for Modern view – Colbs Apr 28 '17 at 14:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.