CleanMyPosts is a lightweight Windows desktop app that securely deletes all posts, reposts, replies, likes, and followings from your X (formerly Twitter) account in bulk using browser automation.
CleanMyPosts automates the process of cleaning up your X (formerly Twitter) account by interacting with your account through an embedded browser. The app sends JavaScript commands to perform actions such as deleting posts, reposts, replies, likes, and unfollowing accounts. It retries actions automatically to ensure everything is removed efficiently.
%%{init: {"flowchart": {"diagramPadding": 125}}}%%
flowchart LR
U["User"]
A["CleanMyPosts App"]
B["Embedded Browser"]
X["X (Twitter) Platform"]
U -->A
A -->|Retry|B
A -->|Execute JS Actions|B
A -->|Refresh page|B
B -->X
X -->B
- 🔍 View all posts, reposts, replies, likes, and followings
- 🗑️ Bulk delete all posts
- 🗑️ Bulk delete all reposts
- 🗑️ Bulk delete all replies
- 🖤 Remove all likes
- 👤 Unfollow all followings
- Windows 10 or later
- X (Twitter) account
Once your system meets the requirements, follow these steps to install CleanMyPosts:
- Download the latest version from Releases.
- Run the installer. Ignore the warning about the app being from an unverified publisher.
- Launch the app and log in with your X (formerly Twitter) account.
- Start bulk deleting your posts, replies, reposts, likes, and following easily.
You can also run the cleanup directly in your browser using JavaScript snippets:
- Visit your X profile and note your username (the part after
x.com/, without the@). - Replace all occurrences of
USERNAMEin URLs and function calls with your actual username. - Open Developer Tools in Chrome by pressing
F12. - Go to the Sources tab, then open the Snippets panel.
- Click "New Snippet" and paste the JavaScript code from the provided links.
- Save the snippet.
- Run the snippet once (right-click → Run) to load the script into the page context.
- Switch to the Console tab.
- Manually execute the appropriate function call (e.g.,
DeleteAllPosts(1000, 1000);) in the console to start the deletion process. - Repeat steps 4–8 for other scripts as needed.
-
Script: delete-all-posts.js
-
Run:
DeleteAllPosts(1000, 1000);
-
Script: delete-all-reposts.js
-
Run:
DeleteAllRepost(1000);
-
Script: delete-all-replies.js
-
Run:
DeleteAllReplies('USERNAME', 1000, 5);// replace USERNAME with yours
-
Script: delete-all-likes.js
-
Run:
DeleteAllLike(1000)
-
Script: delete-all-following.js
-
Run:
DeleteAllFollowing(1000, 1000);
We welcome contributions to CleanMyPosts! If you’d like to improve the project, please:
- Check out our contributing guidelines.
- Ideally, open an issue before starting work.
- Submit a pull request with your changes.
Thank you for helping make CleanMyPosts better!
If you encounter any issues or bugs, please report them here.






