Bulk audit and delete your old posts on X. Upload your X data archive, sort posts into Keep / Remove / Unsure, then run the generated script to delete only what you marked.
1
On X, go to Settings → Your Account → Download an archive of your data. X will email you a ZIP file (usually within 24 hours).
2
Unzip the archive. Inside the data folder, find tweets.js (or tweet.js) and upload it below.
3
Get a free Groq API key to enable AI auto-classification (optional but recommended).
Please upload your tweets.js file first
Your file and key never leave your browser. Everything runs locally except an optional call to Groq's AI API for classification.
⚠ Permanent deletion. This script will delete 0 posts marked Remove. There is no undo on X. Posts marked Keep, Unsure, or Unreviewed are not touched.
⏱ Pacing: The script deletes one post every ~4 seconds to stay under X's rate limits. Estimated time: —. Keep the tab open and visible until done.
Make sure you are logged into X in this same browser
Go to x.com (any page on x.com works)
Press F12 (Windows) or Cmd + Option + J (Mac) to open DevTools
Click the Console tab — type allow pasting and press Enter if prompted
Paste the script below and press Enter
The script will open each post in a new tab, delete it, close the tab, move on. Don't switch away.
Watch the console — it logs progress. Stop anytime by closing the tab.
Enter Groq API Key
AI Classify uses Groq's free LLM to suggest Keep / Remove / Unsure for each post.
Get a free key at console.groq.com/keys — no credit card required. Stored only in your browser.