CleanMyPosts is a lightweight Windows desktop app that securely deletes all posts, reposts, replies, likes, and followings from your X (formerly Twitter) account, as well as YouTube comments, in bulk using browser automation.
CleanMyPosts automates the process of cleaning up your social media accounts by interacting with them through an embedded browser. The app sends JavaScript commands to perform actions such as deleting posts, reposts, replies, likes, unfollowing accounts on X (Twitter), and deleting YouTube comments via Google My Activity. 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)"]
Y["YouTube"]
U -->A
A -->|Retry|B
A -->|Execute JS Actions|B
A -->|Refresh page|B
B -->X
B -->Y
- 🔍 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
- 🔍 View all your YouTube comments via Google My Activity
- 🗑️ Bulk delete all YouTube comments
- 🔍 View all liked videos
- 🖤 Remove all liked videos
- Windows 10 or later
- X (Twitter) account (for X features)
- Google account (for YouTube features)
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) or Google account.
- Start bulk deleting your posts, replies, reposts, likes, following, and YouTube comments 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);
-
URL: https://myactivity.google.com/page?hl=en&page=youtube_comments
-
Script: delete-all-youtube-posts.js
-
Run:
DeleteAllYouTubeComments(1000, 500);
-
Script: delete-all-youtube-likes.js
-
Run:
DeleteAllYouTubeLikes(1000, 500);
Note: Make sure you are logged in to your Google/YouTube account before running these scripts. Default parameters can be omitted:
DeleteAllYouTubeComments();orDeleteAllYouTubeLikes();
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!
This tool automates actions in a web browser. Use it at your own risk. The author is not affiliated with X (formerly Twitter) or Google.
If you encounter any issues or bugs, please report them here.








