launchpad app icon sometimes not removed after uninstall ???

tcandela
Valued Contributor II

an uninstall policy uninstalls an application, it is no longer advertised in /Applications. Afterwards on some computers the application icon is gone from launchpad while on some other computers the application icon is still present (question ? over it).

Is there a script or something that can check afterwards to somehow trash the icon?

1 ACCEPTED SOLUTION

tcandela
Valued Contributor II

eventually they don't appear in launchpad

View solution in original post

2 REPLIES 2

tcandela
Valued Contributor II

eventually they don't appear in launchpad

perrycj
Contributor III

So the icons in launchpad are actually in a sqlite database. You can use this as a command or script to remove the app of your choice from the launchpad menu:

sqlite3 ~/Library/Application Support/Dock/*.db "DELETE from apps WHERE title='nameofapp';" && killall Dock

Hopefully that helps.