A local Chrome extension that deletes tweets from your open Twitter/X page by reusing your current browser session. It does not use the public Twitter/X API or ask for API keys.
- Download this repo, for example downloading the packaged zip archive, and extract it.
- Open Chrome and go to
chrome://extensions. - Enable Developer mode.
- Choose Load unpacked.
- Select the folder that contains the repo.
- Open your profile replies page on
https://x.com/YOUR_HANDLE/with_replies. - Click the TwitterClean extension icon.
- Keep Dry run on for the first pass and press Start.
- Watch the popup count. When you are comfortable, turn dry run off and start again.
- The extension only runs after you press Start in the popup.
- Dry run is enabled by default. In dry run mode it finds tweet IDs, but it does not send delete requests. Disable the dry-run mode to delete the tweets in addition to IDs retrieval.
- While deleting, the popup estimates remaining duration and finish time from the current queue and delay. Rate-limit cooldowns update the estimate live too.
- The selected delay is applied between timeline retrieval and delete requests, rate limit errors are detected and temporarily pause the process to allow quota reset.
Install dependencies if needed:
npm installRun the mock test:
npm testThe test loads the extension in Chromium, opens a mock Twitter-like page, starts deletion from the popup, and asserts that mock tweets are removed through a GraphQL-shaped POST endpoint.
