Archive | Apps RSS for this section

SharePoint 2013–Not able to remove an app…

Earlier this year I was playing around with Apps in SharePoint 2013 and deployed a app on one of my developer sites. Now a few weeks ago I noticed this early app experiments and wanted to remove it again. I was logged in as my farm admin (which is also a sitecollection admin to the dev site) and clicked remove… This is what happened:


This confused me a little bit, I did as the friendly message told me, refreshed the page and tried again… same outcome.

Next idea which came to my head was to give it a try using Powershell which you can find described pretty good at TechNet.

When I tried to remove the app using Powershell I experienced an error telling me:


When I cracked ULS viewer open I got some more details

System.InvalidOperationException: The System Account cannot perform this action.   
at Microsoft.SharePoint.Administration.SPApp.RegisterTasks(SqlSession session, Guid originalAppInstanceId, Guid paramSiteId, ICollection`1 tasks, SPAppJobOperation operation, SPUser jobCreator)   
at Microsoft.SharePoint.Administration.SPApp.RegisterTasksAndDependencies(SqlSession session, ICollection`1 tasks, ICollection`1 dependencies, Guid siteId, Guid instanceId, SPAppJobOperation operation, SPUser jobCreator)   
at Microsoft.SharePoint.Administration.SPApp.InstallNoPermissionCheck(SPAppInstance instance, Boolean isUninstall, Guid siteId, SqlSession session, Guid contentDatabaseId, SPUser jobCreator)   
at Microsoft.SharePoint.Administration.SPApp.Install(SPAppInstance instance, SPWeb web, String oauthAppId, Boolean alwaysOverwrite, Boolean isUninstall)   
at Microsoft.SharePoint.Administration.SPApp.Uninstall(SPAppInstance instance, SPWeb web)   
at Microsoft.SharePoint.Administration.SPAppInstance.UninstallInternal(Boolean adminOperationMode)   
at Microsoft.SharePoint.Administration.SPAppCmdlets.UninstallSP

at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord()

With this knowledge I checked the details of the app:


And found the app being owned by another user which I used for developing (and deploying) the app.


When I logged in with this account and tried to remove the app… it worked.