After the desktop bridge app is uninstalled, ProgramData\Packages\{appName} still has a folder “S-1-5-21-****”

Victor Chen 106 Reputation points
2021-01-22T16:33:25.633+00:00

I found that after my app was installed, the S-1-5-21-***\SystemAppData\Helium folder was automatically created under C:\ProgramData\Packages\{appName}, and there was also a cache folder and two dat files.

So, how to Ensure that all contents of the app will be deleted after uninstalling?

Universal Windows Platform (UWP)
{count} votes

Accepted answer
  1. Roy Li - MSFT 31,551 Reputation points Microsoft Vendor
    2021-01-26T03:05:21.117+00:00

    Hello,

    Welcome to Microsoft Q&A!

    After confirming with the team, I have some things to share.

    First of all, the platform does attempts to remove the C:\ProgramData\Packages{appName}<userSid>\SystemAppData folder at package uninstall, but like other file system locations, the remove is best-effort basis, i.e., even if we hit an error we don’t want to fail the uninstall. So you should only have an empty C:\ProgramData\Packages{appName}<userSid> folder left after uninstall.

    Cleanup of this per-user folder happens when the current user is being removed. It is safe to manually delete the empty per-user folder, if desired, but it requires admin privilege.

    If the existence of an empty and harmless folder is not causing any issue, then there should be no problem.

    Thank you.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. paris 1 Reputation point
    2022-05-18T11:21:50.737+00:00

    Is there an update to this? Thanks!

    0 comments No comments