✨ Gemini Conversation Delete Shortcut ✨
📝 Description
This Tampermonkey script is a tool that automatically deletes the currently displayed conversation on Google Gemini (https://gemini.google.com/app/*
) using a single keyboard shortcut: Ctrl + Shift + Backspace.
What this script does:
It automates the following 3-step operation sequence:
- Clicks the conversation actions menu button (usually the vertical three dots in the top right).
- Clicks the "Delete" option within the displayed menu.
- Clicks the confirmation button ("Delete" or "Confirm", etc.) in the subsequent deletion confirmation dialog.
Why this script exists (Development Background):
I frequently use ChatGPT and find the Ctrl + Shift + Backspace
shortcut for deleting the current conversation efficient for organizing finished conversations. However, Gemini lacks a similar shortcut; deleting a conversation requires opening the conversation list and selecting the conversation from there each time. This was a frustrating process for me, so I created this user script to easily delete the conversation I am currently viewing. (The shortcut key is set to be the same as ChatGPT's).
Important Note (Regarding Layout):
The UI elements targeted by this script (like the conversation actions menu button) may only appear in a specific layout on the Gemini website due to responsive design, typically when the window is narrow (like a mobile or vertical tablet view). The script includes a window width check and will interrupt the automation if the window is too wide. To ensure it works as expected, please narrow your window to an appropriate width before using the shortcut.
🚀 How to Use
Simple steps to start using this script.
- Install Tampermonkey: If you don't have it yet, install the Tampermonkey extension for your browser (Chrome, Firefox, Edge, Opera, etc.).
- Install the Script: Go to this script's page on Greasy Fork镜像 and click the green "Install" button. Tampermonkey will handle loading the script.
- Important: For Chromium-based browsers (Chrome, Edge, etc.):
- With Tampermonkey v5.3.2 or later, for user scripts to run, you must enable "Developer mode" in your browser's extension settings (Example settings page:
chrome://extensions/
or edge://extensions/
). The script will not work if this is not enabled.
- Open Gemini and Adjust Window Width: Open a conversation page at
https://gemini.google.com/app/*
and narrow your window width so that the UI elements targeted by the script are visible (adjust the layout).
- Execute the Shortcut: With the window appropriately adjusted, press
Ctrl + Shift + Backspace
on your keyboard. The deletion operation will be executed automatically.
👨💻 Developer
Takashi Sasaki
🌐 Homepage
https://x.com/TakashiSasaki
📄 License
MIT