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.
- Bulk delete all posts
 - Bulk delete all reposts
 - Bulk delete all replies
 - Remove all likes with a single click
 - Unfollow all accounts at once
 - Secure browser automation
 
- Windows 10 or later
 - X (Twitter) account
 
- 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 (e.g., 
@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 by right-clicking it and selecting Run — this loads 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 step 4 with other functions as needed.
 
- URL: https://x.com/search?q=from%3AUSERNAME
 - Script: delete-all-posts.js
 - Run: 
DeleteAllPosts(1000, 1000); 
- URL: https://x.com/USERNAME
 - Script: delete-all-reposts.js
 - Run: 
DeleteAllRepost(1000); 
- URL: https://x.com/USERNAME/with_replies
 - Script: delete-all-replies.js
 - Run: 
DeleteAllReplies('USERNAME', 1000, 5);// replace USERNAME with yours 
- URL: https://x.com/USERNAME/likes
 - Script: delete-all-likes.js
 - Run: 
DeleteAllLike(1000) 
- URL: https://x.com/USERNAME/following
 - 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.






