From 85be65b07ba44062873dee537c5f2d4e5b1b75ea Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 6 Jun 2023 22:09:15 +0200 Subject: [PATCH] chore: update npx playwright uninstall docs (#23552) --- docs/src/browsers.md | 2 +- packages/playwright-core/src/cli/program.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/browsers.md b/docs/src/browsers.md index 86f54c1f4e..b17c5d3987 100644 --- a/docs/src/browsers.md +++ b/docs/src/browsers.md @@ -992,7 +992,7 @@ Playwright keeps track of the clients that use its browsers. When there are no m To opt-out from the unused browser removal, you can set the `PLAYWRIGHT_SKIP_BROWSER_GC=1` environment variable. -### Remove browsers +### Uninstall browsers This will remove the browsers (chromium, firefox, webkit) of the current Playwright installation: diff --git a/packages/playwright-core/src/cli/program.ts b/packages/playwright-core/src/cli/program.ts index f0ea6c3a64..bc9afcb322 100644 --- a/packages/playwright-core/src/cli/program.ts +++ b/packages/playwright-core/src/cli/program.ts @@ -175,13 +175,13 @@ Examples: program .command('uninstall') - .description('Removes browsers used by this version of Playwright from the system (chromium, firefox, webkit, ffmpeg). This does not include branded channels.') - .option('--all', 'Removes all browsers used by any Playwright version from the system.') + .description('Removes browsers used by this installation of Playwright from the system (chromium, firefox, webkit, ffmpeg). This does not include branded channels.') + .option('--all', 'Removes all browsers used by any Playwright installation from the system.') .action(async (options: { all?: boolean }) => { await registry.uninstall(!!options.all).then(({ numberOfBrowsersLeft }) => { if (!options.all && numberOfBrowsersLeft > 0) { console.log('Successfully uninstalled Playwright browsers for the current Playwright installation.'); - console.log(`There are still ${numberOfBrowsersLeft} browsers left, used by other Playwright installations.\nTo uninstall Playwright browsers for all versions, re-run with --all flag.`); + console.log(`There are still ${numberOfBrowsersLeft} browsers left, used by other Playwright installations.\nTo uninstall Playwright browsers for all installations, re-run with --all flag.`); } }).catch(logErrorAndExit); });