Currently, in the iOS "..." menu, the destructive button at the bottom is hardcoded as "Close [N] Tabs and Clear Data" (e.g., "Close two tabs and clear the data"). While useful for a full reset, it is an all-or-nothing action that closes every open tab and wipes all browsing data at once, and it is easy to tap accidentally during one-handed use.
If a user only wants to close the current tab and clear cookies/cache/local storage for just that specific website (for privacy, userscript debugging, or resetting a login session), they currently have to go to Settings -> Privacy -> Website Data, search for the domain, delete it manually, and return to close the tab.
Making this button configurable and adding granular single-tab data clearing will streamline the workflow into a single tap without disrupting other open tabs or global login sessions.
Configurable Menu Action in Settings:
Allow users to customize the behavior of the "Close [N] Tabs and Clear Data" button in Settings:
Tab Scope: Choose between "Close Current Tab Only" or "Close All [N] Tabs".
Data Clearing Granularity: Choose between "Do not clear data", "Clear current site data only (cookies, cache, local storage)", or "Clear all browsing data" (current default).
Safety & Visibility: Option to require a confirmation prompt on tap, or hide the button when customizing the menu.
Long-Press Context Menu:
Long-pressing the "Close [N] Tabs and Clear Data" button in the "..." menu (or long-pressing the tab switcher button) pops up quick actions:
"Close Current Tab"
"Close Current Tab & Clear Site Data"
"Close All Tabs & Clear All Data"
Similar Implementations in Other Browsers:
Browsers like Bromite, Brave, and Firefox Focus/Mull offer per-site data clearing ("Clear data for this site") directly from the address bar shield/lock menu or tab close options, allowing users to burn a single session without wiping their entire browser state.