Containers — Cleanup and Rebuild Procedures¶
Use these steps when a user's container is very large or shows strange errors. Containers are considered "full" around 4.7 GB; larger sizes often cause odd behavior. Rebuilding or cleaning the container can resolve many issues.
Overview¶
- What is a container?
A container stores a user's personalization and profile data so the user's settings follow them across different VDI servers. - Impact: Clearing or rebuilding containers can remove user personalization (favorites, taskbar pins, Quick Access, etc.). Always coordinate with the user and record their settings before destructive actions.
Prerequisites / Safety¶
- Notify the user and get consent before making changes.
- Record personalization details:
- Browser favorites
- Taskbar and Quick Access pins
- Any local files the user needs
- Recommend the user back up critical items if possible.
- Prefer trying non-destructive cleanups first (temp/cache removal).
Identify Large Containers¶
- Check container sizes (tools available on support systems).
- Focus on containers > ~4.7 GB.
Non-Destructive Cleanup (recommended first)¶
- Clear Temp folder
- Path:
\\<session>\C$\Users\<user>\AppData\Local\Temp - Delete files/folders; skip items "in use".
- Clear Outlook/IE cache files
- Path:
\\<session>\C$\Users\<user>\AppData\Local\Microsoft\Windows\INetCache\Content.Outlook\<folder>\ - Remove large
.wbtor old cache files (keep recent month if unsure). - Remove large cached browser data
- Check
\Local\Microsoft\Edge\User Data\and similar for huge files (use discretion). - Inspect other large files with WinDirStat (see Tools below) and remove safely.
Application-specific Procedures¶
Citrix (XD) Containers¶
- Close all Citrix published apps for the user.
- Clear Temp / INetCache as above.
- If issues persist, consider rebuilding container (see Rebuild below).
Office / Outlook¶
- Check OST size:
- Path:
\\<session>\C$\Users\<user>\AppData\Local\Microsoft\Outlook - If OST is very large and errors are OST-specific:
- Have user close Outlook.
- Delete the OST file (Outlook will re-sync on next start).
- Note: If you clear container without removing mail or attachments, container will refill quickly — advise user to remove large emails/attachments.
- After removing OST, reopen Outlook and confirm mail re-sync.
XA (Xpress Advantage / Teller Apps)¶
- Close all Citrix/XA apps.
- Perform Temp/Cache cleanup.
- If still problematic, rebuild container.
Rebuild Container (destructive — use only when needed)¶
- With the user present, record personalization (favorites, pins, etc.).
- Have user sign out of their session.
- Rename the user profile folder on the session host:
- Example: rename
C:\Users\<user>toC:\Users\<user>_old - When the user signs back in, a new container/profile will be created.
- Restore personalization manually for the user.
- Delete or archive the
_oldfolder once confirmed working.
Automation / Regular Maintenance¶
- Consider automating periodic cleanup of
Content.Outlookor Temp files for all users if acceptable. - Monitor containers for growth and set alerts where possible.
Tools & References¶
- WinDirStat executable (recommended):
\\BCUPublicDrives\IT-Private\Quick Tech Tools\Windirstat\WinDirStat_2_2_2\x64 - Run WinDirStat, choose "Individual Folder" and point at
\\<session>\C$\Users\<user>\AppData\Localto identify large files. - Helpful doc: Clearing Outlook cache / Content.Outlook:
https://learn.microsoft.com/en-us/answers/questions/1152832/outlook-why-i-need-to-clear-the-cache-content-outl
OST / Mail Sync Notes¶
- OST contains recent mail cache (commonly ~3 months). For users with very large mailboxes, consider adding them to one of these AD groups:
CTX-Outlook-Sync1MonthCTX-Outlook-Online(recommended for heavy mail users)
Examples of Problem Files to Check¶
Local\Microsoft\Edge\User Data\ProvenanceData\<...>\vti-*.quant.ort— safe to clear in tested cases.Local\IMMeReceipts\Chromium\Cache\Cache_Data— can grow large.- Old files in
INetCache\Content.Outlook\...and large.wbtfiles.