option to delete the Cloud Cache data from the FSLogix session located in the Program Data folder

$@chin 275 Reputation points
2025-11-11T18:40:54.7133333+00:00

In our AVD environment, we are using FsLogix with the Cloud Cache feature. It has been observed that whenever users log in, their data or cached data is stored in the session host under the ProgramData/Cache folder. This data consumes significant space, and even after users log off, it remains on the system, leading to space constraints on the C: drive. Currently, older data needs to be cleaned up manually.

Is there an option available, or are we missing something in the Cloud Cache FsLogix configuration, to automatically manage or delete such data while ensuring that active session data is not affected ?

Windows for business | Windows Client for IT Pros | User experience | FSLogix
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-11T18:41:39.98+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Currently, FSLogix does not provide built-in options to automatically manage or delete cached data from the ProgramData/Cache folder after user logoff. The data remains in this folder, which can lead to space constraints on the system. To manage this data, you may need to implement a manual cleanup process or create a script that runs after user logoff to delete older cached data while ensuring that active session data is not affected.

    It's important to ensure that any cleanup process does not interfere with the active session data to prevent data loss or corruption. You might consider scheduling a cleanup task during off-peak hours to minimize the impact on users.


    References:

    0 comments No comments

  2. Domic Vo 9,860 Reputation points Independent Advisor
    2025-11-11T20:50:23.8666667+00:00

    Hello $@chin,

    Based on your describe, FsLogix Cloud Cache is working as designed — it doesn’t automatically clear out old cache data from ProgramData\FSLogix\Cache. The cache is meant to stay behind for resiliency, so cleanup has to be managed through settings or maintenance scripts. You’re not missing a hidden option; Microsoft expects admins to handle disk usage proactively.

    The reason it persists is simple: Cloud Cache keeps local copies so sessions remain available even if cloud storage is slow or temporarily unreachable. That’s why files don’t disappear at logoff. Over time, though, this can fill up the C: drive in busy AVD environments.

    To manage it, you can enable the CCDeleteLocalCacheOnLogoff registry setting to clear cache when users log off (though this reduces resiliency if they reconnect quickly). Alternatively, many admins use scheduled PowerShell scripts to remove stale files based on age, combined with monitoring tools like Azure Monitor to alert when disk space runs low.

    Let me know how it goes, and if this answer helps, feel free to hit “Accept Answer” so others can benefit too 😊

    Domic.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.