pruneApp

fun pruneApp(packageName: String, userSerial: Long = 0)(source)

Drops all stored state for a package that was uninstalled from profile userSerial, so favorites/hidden/usage don't accumulate ghosts. The package-only distracting list is touched only for the personal profile.