Tutorial: Content Cleanup — Unlike All, Clear Reposts, Delete Tweets with Claude
You are my X/Twitter content cleanup specialist. I want to use XActions to clean up my account — unlike all posts, clear all reposts, delete old tweets, and start with a clean slate. Help me systematically clean my public footprint.
Context
I'm using XActions (https://github.com/nirholas/XActions), an open-source X/Twitter toolkit with content cleanup scripts: src/unlikeAllPosts.js, src/clearAllReposts.js, and more.
What I Need You To Do
Part 1: Assess the Damage
Before cleaning, let me understand what's on my account:
Pull my profile stats using
x_get_profile:- Total tweets (includes retweets, replies)
- How long I've been on the platform
- Engagement patterns
Pull my recent tweets using
x_get_tweets:- Are there old tweets I'm embarrassed about?
- How many retweets vs original tweets?
- Any controversial or outdated content?
Check my likes:
- Likes are public by default
- Old likes can be problematic
- Volume estimate for cleanup
Part 2: Unlike All Posts
Using src/unlikeAllPosts.js:
Navigate to your Likes page:
x.com/YOUR_USERNAME/likesPaste the script in DevTools
How it works:
- Finds all unlike buttons (
[data-testid="unlike"]) on the page - Clicks each one with a delay between clicks
- Scrolls to load more liked posts
- Continues until all likes are removed or limit is reached
- Logs progress: "Unliked 45 posts..."
- Finds all unlike buttons (
Configuration:
- Set a delay between unlikes (1-2 seconds recommended)
- Set a batch size to avoid rate limits
- Can run multiple sessions to clear large like histories
Warning:
- This is irreversible — you can't re-like everything easily
- Can take hours for accounts with thousands of likes
- Consider exporting liked tweets first using
scripts/scrapeLikes.js
Export first (recommended):
- Run
scripts/scrapeLikes.jsto save all your likes - Navigate to likes page
- Script extracts all liked tweets with metadata
- Save as JSON/CSV backup
- THEN run the unlike script
- Run
Part 3: Clear All Reposts
Using src/clearAllReposts.js:
Navigate to your profile:
x.com/YOUR_USERNAMEPaste the script
How it works:
- Finds retweet indicators on your timeline
- Clicks the unretweet button (
[data-testid="unretweet"]) - Confirms the action if prompted
- Scrolls to load more
- Continues until all reposts are cleared
Why clear reposts:
- Old retweets can be outdated or embarrassing
- Retweets clutter your profile — makes it hard for visitors to see YOUR content
- Cleaning reposts makes your profile look more curated
- Some people judge accounts by what they retweet
Selective approach:
- Instead of clearing all, modify to only clear:
- Reposts older than 30/60/90 days
- Reposts from specific accounts
- Keep reposts with high engagement
- Instead of clearing all, modify to only clear:
Part 4: Delete Old Tweets
For the nuclear option — deleting old tweets:
Why delete old tweets:
- Outdated opinions that no longer represent you
- Tweets from a different era of your life/career
- Privacy concerns
- Starting fresh with a new brand/direction
Using
x_delete_tweetvia MCP:"Delete this tweet: [URL]"This deletes specific tweets one at a time.
Selective deletion strategy (recommended):
- Export all tweets first:
x_get_tweetswith a high limit - Review the list
- Identify tweets to delete
- Delete them individually or in small batches
- Export all tweets first:
Browser script approach:
- Navigate to your profile
- For each tweet: click ⋯ menu → Delete → Confirm
- Can be automated with a custom script
Bulk deletion tips:
- Request your full Twitter archive from X Settings first
- This gives you a complete record before deleting
- Then systematically delete what you don't want public
Part 5: Clear All Bookmarks
As part of a total cleanup:
- Export bookmarks first:
x_get_bookmarks - Then clear:
x_clear_bookmarksorsrc/clearAllBookmarks.js - Start fresh with a curated bookmark system
Part 6: Full Account Reset Workflow
If you want a complete fresh start (without creating a new account):
Step 1: Backup everything
- Export tweets
- Export likes
- Export bookmarks
- Export followers/following lists
- Export DMs
- Download full account data
Step 2: Clean likes (unlikeAllPosts.js)
- Run in multiple sessions
- 200 unlikes per session, with breaks in between
Step 3: Clean reposts (clearAllReposts.js)
- Usually faster than likes
Step 4: Delete old tweets (selective or all)
- Consider keeping your best-performing tweets
- Delete everything before a certain date
Step 5: Leave communities (leaveAllCommunities.js)
- Start fresh with intentional community membership
Step 6: Clean following list (unfollowback / unfollowEveryone)
- Unfollow non-followers
- Or unfollow everyone for a truly clean slate
Step 7: Update profile
- New bio, new avatar, new banner
- Fresh start with optimized profile
Step 8: Re-build intentionally
- Carefully re-follow accounts that matter
- Join communities that align with your new direction
- Start posting fresh content
Part 7: Ongoing Content Hygiene
Set up a system to keep your account clean going forward:
Monthly cleanup routine:
- Clear reposts from the previous month
- Unlike posts older than 30 days
- Review and delete any tweets that underperformed or aged poorly
- Clean bookmarks
Automated hygiene using the Growth Suite approach:
- Pair smartUnfollow.js with content cleanup
- Regular follower audits
- Bookmark reviews
Content audit schedule:
- Every 3 months: Review all tweets from 3 months ago
- Delete anything that doesn't serve your current brand
- Keep a lean, curated profile
My Cleanup Goals
(Replace before pasting)
- What I want to clean: Likes / Reposts / Old tweets / Everything
- Account age: HOW_OLD
- Approximate likes to clear: ROUGH_NUMBER
- Approximate reposts to clear: ROUGH_NUMBER
- Do I want to delete old tweets? Before what date?
- Have I backed up my data? Yes/No
Start with Part 1 — help me assess what needs cleaning and make a plan.
⚡ Explore XActions
100% free and open-source. No API keys, no fees, no signup.
Browse All Documentation