-
Notifications
You must be signed in to change notification settings - Fork 12
Uninstall
There is no fully automatic uninstallation process. Remove the solution in the order below.
Back up first. Deleting the Azure resources destroys the analytics SQL database and all collected data. Take a backup (or export) of the database first if you may need the data.
Stop the App Service (or at least its web-jobs) so no further data is imported while you tear things down. You can do this from the App Service in the Azure portal, or simply delete the resource group in step 3.
Only needed if you deployed the SharePoint web-tracking / SPFx components.
-
Unregister the web-tracker from the deployed SharePoint sites. The simplest way is the installer: open the SharePoint tab, check the site list is the one you deployed to, and click Remove AITracker. It signs you in through your browser (same rights as the install — site collection administrator on each site) and removes the
SPOInsightslibrary and the tracking custom actions from every web.Alternatively, run the PowerShell:
.\InstallSPOInsightsTracker.PnP.ps1 -ConfigFileName "MyConfig.json" -UninstallOnly
The configuration file is the same one created to deploy to the sites — see Deploy AITracker via PowerShell.
-
Uninstall the SPFx solution from the tenant App Catalog (this step is not automated):

The installer creates everything in a single resource group. Deleting that resource group removes all of the solution's Azure resources in one step: App Service, SQL Server & database, Redis, Service Bus, Key Vault, Storage, Application Insights, Log Analytics, the Automation account, and Cognitive Services (where deployed). It also removes the Azure RBAC role assignments that were granted on the group.
Delete the resource group from the Azure portal (or az group delete -n <resource-group>).
If they are no longer needed elsewhere, delete the two Azure AD app registrations created for the solution (the runtime and installer service principals). See Prerequisites → Solution service principals.
There is normally no third app registration to remove: the SharePoint sign-in used Microsoft's built-in SharePoint Online Management Shell application. If you created your own app registration for it (Legacy SPO web setup), delete that too.
- Home
- What data is collected
- The web portal
- Licence activity
- Copilot data & stats
- Architecture & costs
- App registrations setup
- Install with the installer
- Manual installation
- Private endpoints (optional)
- Certificate authentication (optional)
- Enable CSP for AITracker
- Verify the deployment
- Legacy SPO web setup