Diskzyv0.1
Safe to delete

What is ms-playwright in Library/Caches? Safe to delete?

Short answer

Yes, the ms-playwright folder is safe to delete. It contains browser builds that Playwright downloaded for automated tests, and one command installs them again.

Where it is

~/Library/Caches/ms-playwright

What it is

Playwright is a browser testing and automation tool. It does not use the browsers installed on your Mac. It downloads its own builds of Chromium, Firefox and WebKit into ~/Library/Caches/ms-playwright.

Each Playwright release is tied to specific browser builds. When a project updates Playwright, new builds are downloaded, and older ones can remain if another project or an old install still points at them.

You may have this folder without having installed Playwright yourself, because other tools that drive a browser use it too.

How big it gets

Each browser build is a few hundred MB, so several versions can add up to a few GB.

How to clear it by hand

  1. Make sure no tests are running.
  2. In a project that uses Playwright, run the command below. It removes the browsers downloaded by every Playwright installation on your Mac.
  3. Alternatively, move ~/Library/Caches/ms-playwright to the Trash in Finder.
  4. When you need the browsers again, run npx playwright install in the project.
In Terminal
npx playwright uninstall --all

What happens afterwards

Playwright tests fail with a message asking you to install browsers until you run npx playwright install again. Your own browsers and their data are not affected.

How Diskzy handles it

Diskzy shows this folder with its size on the disk map and counts it among caches under System Data, so you can see how much the test browsers take.

Related guides

See where your Mac's space went

Diskzy maps your disk, explains System Data and clears what's safe. Free for 72 hours, then $9 once for 2 Macs.

Try Diskzy for free
Read this in:EnglishEspañolDeutschPortuguêsFrançaisTürkçe日本語