Skip to content

CleanMyPosts lets you view and delete all posts, reposts, replies, likes, and followings from your X (Twitter) account in bulk using browser automation.

License

Notifications You must be signed in to change notification settings

thorstenalpers/CleanMyPosts

Banner

Windows License CI Tests Donate Star this repo

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.


ℹ️ How It Works

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
Loading

🚀 Features

X (Twitter)

  • 🔍 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

YouTube

  • 🔍 View all your YouTube comments via Google My Activity
  • 🗑️ Bulk delete all YouTube comments
  • 🔍 View all liked videos
  • 🖤 Remove all liked videos

🛠️ Requirements

  • Windows 10 or later
  • X (Twitter) account (for X features)
  • Google account (for YouTube features)

📦 Installation

Once your system meets the requirements, follow these steps to install CleanMyPosts:

  1. Download the latest version from Releases.
  2. Run the installer. Ignore the warning about the app being from an unverified publisher.
  3. Launch the app and log in with your X (formerly Twitter) or Google account.
  4. Start bulk deleting your posts, replies, reposts, likes, following, and YouTube comments easily.

🎬 See It in Action

X

Delete posts
Delete posts GIF
Delete reposts
Delete reposts GIF
Delete replies
Delete replies GIF
Delete likes
Delete Likes GIF
Delete Followings
Unfollow Accounts GIF

Youtube

Delete Comments
Unfollow Accounts GIF
Delete Likes
Unfollow Accounts GIF

App

Settings
Settings

🧟‍♂️ Advanced: Run Deletion Scripts Manually

You can also run the cleanup directly in your browser using JavaScript snippets:

🔧 Steps:

  1. Visit your X profile and note your username (the part after x.com/, without the @).
  2. Replace all occurrences of USERNAME in URLs and function calls with your actual username.
  3. Open Developer Tools in Chrome by pressing F12.
  4. Go to the Sources tab, then open the Snippets panel.
  5. Click "New Snippet" and paste the JavaScript code from the provided links.
  6. Save the snippet.
  7. Run the snippet once (right-click → Run) to load the script into the page context.
  8. Switch to the Console tab.
  9. Manually execute the appropriate function call (e.g., DeleteAllPosts(1000, 1000);) in the console to start the deletion process.
  10. Repeat steps 4–8 for other scripts as needed.

Delete Posts

Delete Reposts

Delete Replies

Unlike Posts

Unfollow Accounts

Delete YouTube Comments

Remove Liked Videos

Note: Make sure you are logged in to your Google/YouTube account before running these scripts. Default parameters can be omitted: DeleteAllYouTubeComments(); or DeleteAllYouTubeLikes();


🤝 How to Contribute

We welcome contributions to CleanMyPosts! If you’d like to improve the project, please:

  1. Check out our contributing guidelines.
  2. Ideally, open an issue before starting work.
  3. Submit a pull request with your changes.

Thank you for helping make CleanMyPosts better!


⚠️ Disclaimer

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.


🐞 Report a Bug

If you encounter any issues or bugs, please report them here.


🌟 Thank You for Starring!

Star History Chart

About

CleanMyPosts lets you view and delete all posts, reposts, replies, likes, and followings from your X (Twitter) account in bulk using browser automation.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •