How to clean up user-level leftovers on uninstall?Solved

Participant
Discussion
7 hours ago

Hi all,

When I deploy our macOS app via Apps → Add → Enterprise App (DMG) and later run Actions → Uninstall Application, the .app bundle in /Applications disappears, but user-specific data remains, for example:

/Users/<username>/Library/Containers/MyCompany
/Users/<username>/Library/Application Scripts/MyCompany

These folders contain sandbox datapreferences, daata stores, caches, etc.

 

Questions

1. Does Hexnode have a built-in option to purge ~/Library/Containers/<bundle-id> when an Enterprise DMG app is uninstalled?

2. If not, can Hexnode trigger a post-uninstall script that wipes those paths? Any sample scripts appreciated.

3. Would repackaging the app as a signed PKG (with custom pre/post-flight scripts) solve the issue, or would PKG deployments leave the same user data behind?

Thanks in advance for any guidance!

Replies (0)

Be the first to reply!
Save