#15418·puppeteer

[Feature]: Add an option to clear old browser versions only

Author: Seb33300Created Sep 4, 2026Updated Sep 4, 2026
LabelsconfirmedP3

Feature description

Currently, the clear command removes all installed browsers:

npx @puppeteer/browsers clear

It would be useful to have an option, for example --old, that removes all old browser versions while keeping the latest installed version of each browser.

For example:

npx @puppeteer/browsers clear --old

Expected behavior:

  • Keep the latest installed version of each browser.
  • Remove all older installed versions.
  • Avoid having to download the latest browser again after cleaning the cache.

In our CI/CD pipeline, we currently run the clear command before installing the required browser version to prevent old Puppeteer browser versions from accumulating on the server.

The downside is that the currently installed Chrome version is also removed, so it has to be downloaded again on every deployment. Downloading Chrome takes a significant amount of time and unnecessarily increases the deployment duration.