{"id":30284664,"url":"https://github.com/9de/chatgpt-conversation-deleter","last_synced_at":"2025-08-16T19:14:19.576Z","repository":{"id":307227768,"uuid":"1023161059","full_name":"9de/chatgpt-conversation-deleter","owner":"9de","description":"Since OpenAI doesn't support bulk deletion based on keywords, I made a mass deleter for ChatGPT conversations using keywords.","archived":false,"fork":false,"pushed_at":"2025-07-20T16:51:59.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-11T01:39:47.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/9de.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-20T16:49:15.000Z","updated_at":"2025-07-20T16:52:41.000Z","dependencies_parsed_at":"2025-07-30T06:16:20.168Z","dependency_job_id":"d534accd-ce61-444c-9837-39f0b0cdcc6a","html_url":"https://github.com/9de/chatgpt-conversation-deleter","commit_stats":null,"previous_names":["9de/chatgpt-conversation-deleter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/9de/chatgpt-conversation-deleter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9de%2Fchatgpt-conversation-deleter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9de%2Fchatgpt-conversation-deleter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9de%2Fchatgpt-conversation-deleter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9de%2Fchatgpt-conversation-deleter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9de","download_url":"https://codeload.github.com/9de/chatgpt-conversation-deleter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9de%2Fchatgpt-conversation-deleter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270759380,"owners_count":24640438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-16T19:14:18.844Z","updated_at":"2025-08-16T19:14:19.562Z","avatar_url":"https://github.com/9de.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatGPT Conversation deleter\n\nA powerful Node.js CLI tool to search and bulk delete ChatGPT conversations by keyword. Clean up your ChatGPT conversation history efficiently with an interactive command-line interface.\n\n## Features\n\n- 🔍 **Smart Search**: Search through all your ChatGPT conversations using keywords\n- 🗑️ **Bulk Deletion**: Delete multiple conversations at once with confirmation prompts\n- 📄 **Pagination Support**: Automatically handles large conversation histories\n- 🔐 **Secure Authentication**: Uses your ChatGPT bearer token for API access\n- 🎯 **Interactive CLI**: User-friendly command-line interface with clear prompts\n- ⚡ **Native Performance**: Uses native curl and Node.js modules (no heavy dependencies)\n\n## Prerequisites\n\n- Node.js 16.0.0 or higher\n- `curl` command available in your system PATH\n- Valid ChatGPT account with conversations to Scrape it\n\n## Installation\n\n### Option 1: Clone and Run Locally\n```bash\ngit clone https://github.com/9de/chatgpt-conversation-deleter.git\ncd chatgpt-conversation-deleter\nnpm install\nnpm start\n```\n\n## Usage\n\n1. **Run the application**:\n   ```bash\n   npm start\n   ```\n\n\n## How to Get Your Authentication Token\n\n1. Visit [chatgpt.com](https://chatgpt.com) and log in\n2. Open your browser's Developer Tools:\n   - Chrome/Edge: Press `F12` or `Ctrl+Shift+I`\n   - Firefox: Press `F12` or `Ctrl+Shift+I`\n   - Safari: Press `Cmd+Option+I`\n3. Go to the **Application** tab (Chrome/Edge) or **Storage** tab (Firefox)\n4. Navigate to **Cookies** → `https://chatgpt.com`\n5. Find the cookie named `__Secure-next-auth.session-token`\n6. Copy its value (this is your bearer token)\n\n⚠️ **Security Note**: Keep your token private and never share it publicly.\n\n## Example Usage\n\n```\n=== ChatGPT Conversation Manager ===\n\nEnter your GPT authentication token: eyJhbGciOiJkaXIiLCJlbmMiOi...\nVerifying authentication...\nWelcome, John Doe (john.doe@example.com)!\n\nEnter a keyword to search in your chat history: javascript\n\nFetching your search history...\n\nFound 15 conversations with the keyword \"javascript\":\n1. JavaScript Array Methods (ID: abc123...)\n2. React JavaScript Tutorial (ID: def456...)\n3. JavaScript Debugging Tips (ID: ghi789...)\n...\n\nDo you want to delete these conversations? (yes/no): yes\n\nDeleting conversations...\n✓ Conversation \"JavaScript Array Methods\" deleted successfully\n✓ Conversation \"React JavaScript Tutorial\" deleted successfully\n✓ Conversation \"JavaScript Debugging Tips\" deleted successfully\n...\n\n✓ All conversations with the specified keyword have been deleted.\n```\n\n## API Endpoints Used\n\nThis tool interacts with the following ChatGPT API endpoints:\n- `GET /backend-api/me` - Verify authentication and get user info\n- `GET /backend-api/conversations/search` - Search conversations by keyword\n- `PATCH /backend-api/conversation/{id}` - Delete/hide conversations\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Disclaimer\n\nThis tool is not officially affiliated with OpenAI. Use it responsibly and in accordance with ChatGPT's terms of service. The author is not responsible for any data loss or account issues that may result from using this tool.\n\n\n**⭐ If this tool helped you, consider giving it a star on GitHub!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9de%2Fchatgpt-conversation-deleter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9de%2Fchatgpt-conversation-deleter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9de%2Fchatgpt-conversation-deleter/lists"}