Service Graph Connector for Microsoft Intune - Software removal import Overview The Service Graph Connector for Microsoft Intune removes software from the CMDB when Intune no longer reports it.By default, the SG-Intune Software and SG-Intune Software Reports post scripts delete these records one at a time. On large tenants this can take many hours and delay the import cycle.The new SG-Intune Software Removal import deletes stale software during the transform phase instead, which is much faster. It is optional and off by default. How it works The software removal import runs last, after the Software or Software Reports import has refreshed last_scan on every record it sees.It only removes software when the software import completed successfully and has run since the last removal. Otherwise it logs the reason and does nothing.Records are deleted by the Remove Record transform from Integration Commons, in import sets of 5000 and up to 10 threads in parallel. The number of threads that can run in parallel depends on number of customer active nodes, maximum is 10. The window Each run looks only at software last scanned between the previous two removal runs, so it does not read the full history every time. The next run starts where this one ended.The first run has no lower bound. It removes everything last scanned before the start of the current import cycle, so expect the largest deletion on that run.Removal trails by about one import cycle: software that goes stale after a window is removed on the next run. Release This feature is available from 2.9.1 (Service Graph Connector for Microsoft Intune) Solution Upgrade Service Graph Connector for Microsoft Intune to version 2.9.1 or later.Set the system property sn_intune_integrat.enable_software_removal_import to true. This needs the sgc_admin role. To do this, navigate to Filter Navigator -> enter sys_properties.list -> search for sn_intune_integrat.enable_software_removal_import -> set Value to true -> click Update. Nothing else needs to be set up. Upgrades and new connections create the SG-Intune Software Removal import automatically. It runs from the next import cycle. Property = false (default)Property = truePost script removalRuns as beforeSkippedRemoval importIdleDeletes stale software from the next cycleFirst runNot applicableRemoves everything last scanned before that cycle, so expect the largest deletionSwitching back to falseNot applicablePost scripts resume; the removal import keeps its place for later Checking it works Navigate to System Logs and search for message starts with SG-IntuneEach run logs its window and connection, plus the record count before and after removal, or the reason nothing was removed.With daily imports a window is about 24 hours. A short window after a manual re-run is expected. Good to know In our internal performance testing, deleting 6 million software records took about 2 hours 20 minutes with the Software Removal import, compared with about 16 hours using the post script. Actual times depend on the number of records, instance size and load, so your results will differ.If part of a window fails to delete because of transform errors, those records are not retried automatically. To remove them, clear last_run_datetime on the SG-Intune Software Removal data source. The next run then removes everything last scanned before its upper bound.