How to Clear Cookies for a Specific Site in Chrome
You can delete cookies from individual sites without clearing your entire browser cache. Here’s how:
Via Settings UI
- Open
chrome://settings/privacyin the address bar (or go to Settings > Privacy and security) - Click Cookies and other site data
- Click All cookies and site data
- Use the search box to find the domain you want to clear
- Click the trash icon next to the site to delete its cookies, or click the site name to view and selectively delete specific cookies
Via DevTools (faster for active debugging)
If you’re testing a site you’re currently viewing:
- Press F12 to open DevTools
- Go to the Application tab (or Storage in Firefox)
- Expand Cookies in the left sidebar
- Click the domain you want to clear
- Select all cookies (Ctrl+A) and delete them, or right-click individual cookies to remove them
DevTools also lets you inspect cookie values, expiration dates, and security flags before deleting.
Clear cookies programmatically
If you’re automating testing or need to clear cookies via command line, use the Chrome debugging protocol:
google-chrome --user-data-dir=/tmp/chrome-test https://example.com
For headless automation with Python/Playwright:
import asyncio
from playwright.async_api import async_playwright
async def clear_cookies():
async with async_playwright() as p:
browser = await p.chromium.launch()
context = await browser.new_context()
await context.clear_cookies()
await browser.close()
asyncio.run(clear_cookies())
Or with Selenium:
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://example.com")
driver.delete_cookie("cookie_name") # Delete specific cookie
# or
driver.delete_all_cookies() # Clear all cookies for the domain
Bulk management with extensions
For frequent cookie management, consider:
- Cookie Editor — Visual cookie manager with import/export
- uBlock Origin — Blocks cookies by default with granular control
- Privacy Badger — Automatically handles tracking cookies
Browser-level cookie settings
You can also prevent specific sites from storing cookies:
- Go to
chrome://settings/privacy - Click Cookies and other site data
- Scroll to Sites that can always use cookies or Sites that cannot use cookies
- Add domains to block or allow lists
This approach stops sites from creating new cookies rather than deleting existing ones.