Skip to main content

Clear-ChromiumCache

Description

Clears browser caches for Chromium-based browsers.

Usage

  1. Searches for well-known Chromium cache folders under each user's AppData directory.
  2. Deletes all cache data from these discovered directories.
    1. Browser instances will be terminated if -Force is passed and they hold a handle to the target cache files.

Clears detected Chromium browser caches from the target machine. Files with an active handle to the browser process will not be removed.

.\Clear-ChromiumCache.ps1

Clears detected Chromium browser caches from the target machine, closing existing browser processes if required.

.\Clear-ChromiumCache.ps1 -Force

Parameters

ParameterAliasRequiredDefaultTypeDescription
ForceFalseBoolCloses existing browser processes with handles open to target cache files.

Output

.\Clear-ChromiumCache-log.txt