Delete Your Old Tweets With TweetXer
Deleting years of posts one at a time is not a serious plan. TweetXer is an open-source script that reads your Twitter archive and automates the deletion from your logged-in browser session.
This is destructive. Export the archive first, review the script before running it, and assume deleted posts cannot be recovered from the service.
Twitter has since been renamed X, and both its interface and archive format can change. These steps describe the workflow available when this article was written.
Download the archive first
Open Twitter’s data download page, request an archive, and wait for the account notification. Preparation may take a while.
Download and unzip the archive somewhere private. It contains account history you probably do not want in a public folder or repository. TweetXer uses the tweet-headers.js file from that export to identify posts.
Review and run TweetXer
Open the TweetXer repository and read its current instructions and source. Browser-console scripts run with your logged-in account’s permissions, so “open source” is an invitation to inspect the code, not a guarantee that every copied version is safe.
The original workflow was:
- Sign in to Twitter in a desktop browser.
- Open Developer Tools and select the Console tab.
- Paste the current TweetXer script from its repository and run it.
- When prompted, choose
tweet-headers.jsfrom the archive. - Leave the tab open while the script deletes the posts.
The service may rate-limit repeated deletion requests. If that happens, stop and follow the project’s current advice rather than shortening every delay until the account is locked.
TweetXer has also been distributed as a userscript for managers such as Tampermonkey. That can be more convenient, but it adds another extension with access to pages you visit. Check the permissions and source before installing it.
Verify the result
When the script finishes, reload the profile and check older date ranges rather than looking only at the first screen. Search indexes, embeds, caches, screenshots, and third-party archives may still contain copies even after the original posts disappear.
This method avoids a paid bulk-deletion service, but the cost is that you are responsible for the backup, the script, and any interface change. For a one-off cleanup, I think that is a fair trade—provided you read before you paste.
Enjoyed reading this?
If you found this article helpful, consider supporting my writing. Every little bit helps keep this blog going.
Related articles
- Kā apiet algoritmus ar RSS
Uzzini, kā ar RSS un XML plūsmām apiet sociālo tīklu algoritmus. Praktisks ceļvedis, kā izmantot ziņu agregatorus, lai sekotu Latvijas un pasaules medijiem un blogiem.
- Beidzas Facebook Like un Comment pogu ēra
Facebook 2026. gada februārī pārtrauks Like un Comment pogu darbību mājaslapās. Uzzini, ko tas nozīmē un vai tev jādara kas papildus.
- YouTube jaunumi video montāžai un audio vairākās valodās
YouTube ievieš jaunus rīkus satura veidotājiem, mākslīgā intelekta palīdzētu video uzlabošanu televizoros, automātisku rediģēšanu un daudzvalodu audio iespējas, kas palīdz sasniegt vairāk skatītāju un ietaupīt laiku.