Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

The Office Desktop Client Apps use the Office Document Cache when accessing documents stored on cloud endpoints such as SharePoint Online / OneDrive.

Caution: Deleting the Office document cache programmatically or by manually navigating to user app data is not recommended. Doing this may lead to Office Client crashes and/or unrecoverable data loss.

  • The default location of this cache is “%LOCALAPPDATA%\Microsoft\Office\16.0\OfficeFileCache” but can be modified using Group Policy as required.

  • The size of the Office Document Cache will vary based on the sizes of files recently opened via the Office Client.

Probable symptoms if the cache (or artifacts within the cache) are deleted

  • Office documents crash unexpectedly when opened from SharePoint Online or OneDrive. This could be immediately after document launch or later while working on the document.

  • File not Found errors.

  • Path not Found errors.

Managing Office Document Cache on Virtual Desktop Infrastructure

Note: Regular cleaning or rebuilding Office Document Cache by following the recommended steps below may cause the file to be redownloaded during the next file open. For large files, this may add time for the file to be fully accessible in the Office Client.

Note: The steps below will not delete items that have pending changes to upload, nor items with upload errors.

For Admins:

Disable Long Term Caching

You can configure Group policies to delete files from the Office Document Cache on document close. This means you may see artifacts in the OfficeFileCache folder created for an open document, which will then be deleted once the document is closed.

Office ADMX references:

HKCU\software\policies\microsoft\office\16.0\common\fileio!disablelongtermcaching

Aging out of documents

Office (when open) will routinely clean out documents deemed old enough to clean, termed “age out.” This age out policy can be configured to clean documents sooner than the default 14 days. Setting the value to 0 will delete documents after they have been closed for an hour. 

Office ADMX references: 

HKCU\software\policies\microsoft\office\16.0\common\fileio!ageoutpolicy

Note: Both the disableLongTermCaching and AgeOutPolicy regkeys are independent of each other, and do not need to be set simultaneously.

For end users:

Within the Office Application, navigate to File > OptionsSaveCache SettingsDelete cached files

Screenshot showing 'delete cached files' button under Cache Settings.

See also 

Delete your Office Document Cache

Office Document Cache settings 

Office Document Cache and 3rd party software 

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×