coderef

Clearing site dataLimited availability

The Clear-Site-Data header deletes browsing data (such as cookies, storage, or cache) associated with the requesting website.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
✕Not supportedup to 155
Current: 155
Edge
✕Not supportedup to 154
Current: 154
Firefox
1–137Not supported
138+Supportedsince Apr 29, 2025
Current: 157
Safari
1–16.6Not supported
17+Supportedsince Sep 18, 2023
Current: 27
MobileChrome Android
✕Not supportedup to 155
Current: 155
Firefox Android
4–137Not supported
138+Supportedsince Apr 29, 2025
Current: 157
Safari iOS
1–16.6Not supported
17+Supportedsince Sep 18, 2023
Current: 27

How to use

Not supported in Chrome, Edge, Chrome Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: Clear-Site-Data.

Feature detection

There’s no simple runtime check for this feature; rely on the support table and test in your target browsers.

Sub-features

Support for each part of the feature (8). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
http.headers.Clear-Site-Data61796317616317
http.headers.Clear-Site-Data.cache✕✕13817✕13817
http.headers.Clear-Site-Data.clientHints117117✕✕117✕✕
http.headers.Clear-Site-Data.cookies61796317616317
http.headers.Clear-Site-Data.executionContexts✕✕✕✕✕✕✕
http.headers.Clear-Site-Data.secure_context_required61796317616317
http.headers.Clear-Site-Data.storage61796317616317
http.headers.Clear-Site-Data.wildcard✕✕6317✕6317