This package clears the Office Add-in cache folders on the user's computer. It supports Windows and macOS. It doesn't clear the browser cache.
office-addin-cache clear [options]
| Option |
Description |
--force-close |
Close all running Microsoft Office applications without prompting. |
--verbose |
Report the path of each folder being emptied. |
| Label |
Path |
| WEF |
%LOCALAPPDATA%\Microsoft\Office\16.0\Wef |
| WebView Cache |
%USERPROFILE%\AppData\Local\Packages\Microsoft.Win32WebViewHost_cw5n1h2txyewy |
| Outlook Hub App Cache |
%USERPROFILE%\AppData\Local\Microsoft\Outlook\HubAppFileCache |
| Label |
Path |
| OsfWebHost |
~/Library/Containers/com.Microsoft.OsfWebHost/Data |
Office application behavior
If Office applications are running when the command is invoked, the tool will list them and offer to force-close them. If --force-close is specified, they will be closed automatically without a prompt. If the applications cannot be closed, the tool will exit without clearing the cache.