Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

To remove cookies from your computer, open your browser and press Ctrl + Shift + Delete (Cmd + Shift + Delete on Mac) to open the clear browsing data window. Select Cookies and other site data, choose a time range such as All time, and confirm. The same result is available manually through each browser's Privacy or Settings menu in Chrome, Firefox, Safari, and Edge.
Clearing cookies protects your privacy, frees space, and resolves login or layout glitches caused by stale site data. For testers, removing cookies is also a routine step in browser automation to guarantee that each test run starts from a clean, predictable session.
Cookies are small text files that websites store in your browser to remember information such as login sessions, shopping carts, language settings, and tracking identifiers. First-party cookies come from the site you are visiting, while third-party cookies are set by external domains, often for advertising and analytics.
Removing cookies is worthwhile when you want to protect your privacy, stop cross-site tracking, sign out of shared devices, or fix websites that behave incorrectly because of outdated or corrupted stored data. If you would rather stop cookies before they are saved, see the TestMu AI guide on how to disable cookies on a browser.
Chrome is the most widely used desktop browser, so this is the method most people need. You can remove cookies in a few clicks:
Shortcut: press Ctrl + Shift + Delete to jump straight to the delete browsing data dialog. For deeper cache issues, TestMu AI also covers how to clear browser cache in Chrome.
Mozilla Firefox:
Safari (macOS):
Microsoft Edge:
Not sure which browser suits your workflow? Compare options in is Edge better than Chrome.
Manual clearing works for everyday browsing, but QA engineers need to clear cookies programmatically so every automated test starts fresh. In Selenium WebDriver, a single call removes all cookies for the current session:
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class ClearCookies {
public static void main(String[] args) {
WebDriver driver = new ChromeDriver();
driver.get("https://www.example.com");
// Delete a single named cookie
driver.manage().deleteCookieNamed("session_id");
// Delete every cookie for a clean session
driver.manage().deleteAllCookies();
driver.quit();
}
}Calling deleteAllCookies() before or after a test prevents a logged-in session from leaking into the next scenario, which is a frequent cause of flaky, order-dependent tests. Learn more about the driver in the Selenium WebDriver learning hub.
Removing cookies is a quick, safe way to protect your privacy and fix misbehaving websites. Use Ctrl + Shift + Delete for a fast cleanup, or the Privacy menu in Chrome, Firefox, Safari, or Edge for finer control. For testers, clearing cookies programmatically keeps automated runs reliable. When accuracy matters across environments, validating cookie behavior on real browsers ensures your users get a consistent experience after they clear their data.
On Windows or macOS, press Ctrl + Shift + Delete (Cmd + Shift + Delete on Mac) inside Chrome, Firefox, or Edge to open the clear browsing data dialog. Select Cookies and other site data, choose a time range such as All time, and confirm to delete them instantly.
Yes. Cookies store your login sessions and preferences, so removing them signs you out of most sites and resets saved settings like language or theme. You will need to sign in again, but this is expected and does not harm your accounts or data.
Open Settings, scroll to Safari, and tap Clear History and Website Data. Confirm the prompt to delete cookies, cache, and browsing history in one step. For Chrome on iPhone, open the app menu, go to Settings, Privacy, then Clear Browsing Data.
In Chrome for Android, tap the three-dot menu, go to Settings, then Privacy and security, and choose Clear browsing data. Select Cookies and site data, pick a time range, and tap Clear data to remove them from the device.
Cookies store site-specific data such as logins and preferences, while the cache stores copies of images, scripts, and pages to speed up loading. Clearing cookies signs you out, whereas clearing cache frees space and forces fresh downloads without affecting logins.
In Selenium WebDriver, testers call driver.manage().deleteAllCookies() to clear the session, ensuring each test starts from a clean state. This prevents stale sessions from causing flaky results across browsers and is a common step in cross-browser automation.
KaneAI - Testing Assistant
World’s first AI-Native E2E testing agent.

TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance