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

Participant
Discussion
3 weeks 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 (1)

Marked SolutionPending Review
Hexnode Expert
3 weeks ago
Marked SolutionPending Review

Hello,
Thank you for reaching out to Hexnode Connect.

Hexnode UEM currently doesn’t have an in-built option to erase such data. We’ve forwarded your inquiry to the concerned teams. We’ll update you as soon as we validate the alternate options you suggested or any other plausible workaround.

We appreciate your patience. In the meantime, if you have any other queries or require assistance, please feel free to reach out to us.

Best regards,
George
Hexnode UEM

Save