Office 365: Powershell Script to Uninstall the SharePoint App

Sometime O365 SharePoint Online will not allow uninstall app hosted. It will give you error as “Some things went wrong” or “Unable to Uninstall” and gives you message something like e-Discovery or retention polity contact Administrator. Such case if you try to deploy app using Visual Studio then you will get error: Script to Uninstall: [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 … Continue reading Office 365: Powershell Script to Uninstall the SharePoint App