Clear browser cookies and cache from IE and Chrome on a schedule
This Automox Worklet™ automatically removes cookies, cache, browsing history, and temporary internet files from Internet Explorer and Google Chrome on Windows endpoints. The Worklet targets multiple browser storage locations including Internet Explorer caches, Chrome user data directories, and system-level temporary files.
You configure two separate retention periods: one for Internet Explorer data and one for Chrome data. The Worklet evaluates files based on creation time and deletes only those older than your specified threshold, preserving recent data while removing accumulated clutter.
Browser cookies and cached files accumulate over time, consuming disk space and degrading performance. Worse, stored authentication tokens, session data, and cached credentials create security vulnerabilities when endpoints are compromised. Organizations face privacy compliance challenges when browser data persists indefinitely, and users experience frustrating slowdowns as cache sizes balloon to gigabytes. Manual cleanup is inconsistent and time-consuming at scale.
This Worklet eliminates the need for manual cleanup and maintains consistent data hygiene across your endpoint fleet. Organizations managing thousands of endpoints avoid the overhead of user-initiated cleanup while maintaining a predictable cleanup schedule that aligns with your privacy and compliance policies.
Evaluation phase: The Worklet evaluates the endpoint as non-compliant by design, verifying the remediation script runs on every execution cycle to maintain the configured retention schedule.
Remediation phase: The remediation script scans configured directories and removes files older than your retention period. It targets Internet Explorer temporary files, caches, cookies, history, and Chrome user data including archived history, cache, cookies, login data, and visited links.
Windows endpoints with Internet Explorer or Google Chrome installed
PowerShell 2.0 or later
Local administrator rights to access user profile directories
Configure $DaysToDeleteIE and $DaysToDeleteChrome variables (default: 1 day for IE, 7 days for Chrome)
After the Worklet executes, the endpoint's browsers operate in a privacy-enhanced state with optimized performance. Browser data older than your configured retention period is permanently deleted from disk. Users typically notice faster page loads and improved browser responsiveness as cache pressure decreases. The Worklet removes cookies from C:\Users\[username]\AppData\Local\Microsoft\Windows\INetCache (Internet Explorer) and C:\Users\[username]\AppData\Local\Google\Chrome\User Data (Chrome), along with associated history and temporary files. Any stored session tokens or autofill data from sessions older than your threshold will be removed, so users may need to re-authenticate on sites they have not visited within the retention window. You can verify this change through the Automox Activity Log or by checking the endpoint configuration directly.
The Worklet runs on every schedule cycle and can be deployed immediately via RunNow for on-demand cleanup. Monitor the Automox console to verify successful execution across your endpoint fleet and adjust retention days as needed based on endpoint usage patterns and privacy requirements.
Run this Worklet on a pilot Windows endpoint and review evaluation output for clear cookies in ie and chrome.
Confirm Automox activity logs show successful completion and exit code 0.
Verify endpoint state using checks aligned to evaluation script logic, such as the evaluation and remediation scripts.
Validate remediation effects from script operations such as Get-ChildItem, Where-Object, Get-Date, then rerun evaluation for compliance.


By submitting this form you agree to our Master Services Agreement and Privacy Policy.
Already have an account? Log in
Consider Worklets your easy button
A Worklet is an automation script, written in Bash or PowerShell, designed for seamless execution on endpoints – at scale – within the Automox platform. Worklet automation scripts perform configuration, remediation, and the installation or removal of applications and settings across Windows, macOS, and Linux.

AUTOMOX + WORKLETS™
Uncover new possibilities with simple, powerful automation.
By submitting this form you agree to our Master Services Agreement and Privacy Policy