ChatGPT Chat Deleter
Desktop automation script for reviewing visible ChatGPT conversations and deleting chats that do not appear to match a healthcare-related topic.
The script uses screenshot image matching to navigate the ChatGPT interface, OCR to read visible chat text, and a sentence-transformers model to classify whether a chat should be protected, manually reviewed, or deleted.
Features
- Finds ChatGPT UI controls using local PNG reference images.
- Reads nearby chat text with Tesseract OCR.
- Scores chat text against healthcare reference phrases.
- Skips chats classified as healthcare-related or uncertain.
- Automates the delete confirmation flow for unrelated chats.
Requirements
- Python 3.10+
- Tesseract OCR installed locally
- Python packages from
requirements.txt - The included PNG reference images must match the current screen/UI theme closely enough for PyAutoGUI image matching.
Configuration
Copy .env.example to .env or set TESSERACT_CMD in your shell if Tesseract is installed somewhere other than the default Windows path.
Usage
Install dependencies:
pip install -r requirements.txt
Run the script from this folder:
python Chat_Deleter_GPT.py
Keep the ChatGPT window visible and avoid using the mouse or keyboard while the automation is running.
Safety Notes
This project controls the desktop directly. Test with a small number of chats first, review the classification thresholds in the script, and keep backups of anything important before running destructive automation.
Built With
- natural-language-processing
- ocr
- pyautogui
- python
Log in or sign up for Devpost to join the conversation.