When I delete Mac App Store apps in Launchpad, does it delete related files in the Library folders too? I mean files like preferences, application support files etc.
I tried uninstalling some applications, and files in these folders or the corresponding folders in
~/Library/Containers/ were sometimes deleted and sometimes not:
~/Library/Caches/(deleted for most applications)
Files in these folders weren't deleted for any of the applications I tested with:
~/Library/Saved Application State/
For example Kindle books or the database for notes in JustNotes were not deleted.
You can see what files are accessed by uninstalld with
sudo opensnoop -n uninstalld and search for support files with
mdfind $(osascript -e 'id of app "AppName"'). If you want to uninstall applications more completely, it's probably safe to just delete the whole sandbox containers in