ChatGPT Auto-Confirm Delete
Automatically confirms conversation deletion on chatgpt.com — no more manual clicks when deleting old chats.
Userscript
SPA-safe
No dependencies
🧠 Description
When you delete a conversation in ChatGPT, a confirmation popup appears asking you to confirm the deletion.
This userscript detects that popup and automatically clicks the “Delete” confirmation button for you.
It’s built to be safe, fast, and compatible with ChatGPT’s modern single-page app (SPA) architecture.
⚙️ Features
- Automatically confirms the delete prompt
- Reliable with ChatGPT’s dynamic DOM updates
- Clicks only once per confirmation popup (guarded)
- Lightweight and efficient (MutationObserver + RAF throttle)
- No external dependencies — pure JavaScript
🧩 How It Works
The script watches for elements matching this selector:
[data-testid="delete-conversation-confirm-button"]
Once detected and visible, it safely clicks them automatically — simulating what you'd do manually.
It also handles lazy-loaded elements (via MutationObserver), has a fallback poll every second for reliability,
and plays nice with SPA navigation between chat pages.
💻 Installation
- Install a userscript manager:
- Open this script’s page on SleazyFork or GreasyFork and click “Install this script”.
- Visit chatgpt.com. The script will auto-confirm deletions in the background.
⚠️ Notes & Safety
- The script only clicks the ChatGPT delete confirmation — it does not trigger any other destructive actions.
- It doesn’t interact with your chats otherwise.
- You can disable or uninstall anytime via your userscript manager.
📄 License
MIT © Aravvn
🧠 Technical Notes
- Uses
MutationObserver to watch DOM for changes - Throttled with
requestAnimationFrame to avoid redundant scans - Includes a backup interval scan every
1000ms - Cleans up observers and timers on
beforeunload
🧰 Requirements
- Works in Chromium- or Firefox-based browsers
- Requires Tampermonkey, Violentmonkey, or similar userscript manager
- No API keys or network access required
🧩 Changelog
v1.0.0
- Initial release
- Automatic delete confirmation with full SPA support
❤️ Support
If you like the script, give it a 👍 on SleazyFork.
Bug reports or feature ideas are welcome in the comments section.