Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--disable-local-storage

What does --disable-local-storage do?

Disable LocalStorage.

Usage

CLILaunch Chrome with --disable-local-storage using CLI

chrome --disable-local-storage

PuppeteerLaunch Chrome with --disable-local-storage using Puppeteer

const browser = await puppeteer.launch({
  args: ['--disable-local-storage']
});

PlaywrightLaunch Chrome with --disable-local-storage using Playwright

const browser = await chromium.launch({
  args: ['--disable-local-storage']
});

SeleniumLaunch Chrome with --disable-local-storage using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-local-storage')

driver = webdriver.Chrome(options=options)