content-cleanup
Skill648 starsChanged 9 months agoApache-2.0View on GitHub
Mass-cleanup your X/Twitter account. Delete every post matching a search (for example every reply you sent one account), unlike all posts, clear all reposts/retweets, clear all bookmarks, and remove unwanted followers. Use when users want to clean their account history, delete replies to someone, remove old likes, or start fresh.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- aidevelopers2/claudeclear-skillstheir own version, first seen Oct 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- aidevelopers2/claudeclear-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- python/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- python/CLAUDE.mdCLAUDE.md
- xspace-agents/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- llms-full.txtllms.txt
- llms.txtllms.txt
- python/llms-full.txtllms.txt
- python/llms.txtllms.txt
- a2a-multi-agentSkill
- account-backupSkill
- account-toolsSkill
- algorithm-cultivationSkill
- analytics-insightsSkill
- articles-longformSkill
- billing-managementSkill
- blocking-muting-managementSkill
- bookmarks-managementSkill
- business-adsSkill
- community-health-monitoringSkill
- community-managementSkill
- community-notesSkill
- competitor-intelligenceSkill
- content-postingSkill
- content-repurposingSkill
- creator-monetizationSkill
- crm-managementSkill
- delegate-accessSkill
- direct-messagesSkill
- discovery-exploreSkill
- engagement-interactionSkill
- follower-monitoringSkill
- graph-analysisSkill
- grok-aiSkill
- growth-automationSkill
- lead-generationSkill
- lists-managementSkill
- media-studioSkill
- notifications-managementSkill
- post-editingSkill
- premium-subscriptionsSkill
- profile-managementSkill
- reputation-auditSkill
- saved-searchesSkill
- settings-privacySkill
- spaces-liveSkill
- teams-managementSkill
- timeline-viewingSkill
- topic-managementSkill
- twitter-scrapingSkill
- unfollow-managementSkill
- video-downloadingSkill
- viral-thread-generationSkill
- webhooksSkill
- x402-paymentsSkill
- xactions-cliSkill
- xactions-mcp-serverSkill
- x-pro-managementSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
Read the log, untick Dry run, start again
- Distinctive: line 97
Remove all retweets/reposts from your profile.
- Distinctive: line 116
Remove all saved bookmarks.
- Distinctive: line 128
Remove specific followers without fully blocking them (soft-block technique).
- Distinctive: line 154
Remove followers uses the "Remove this follower" option from the three-dot menu on the followers page
- Distinctive: line 155
All scripts include configurable delays to respect rate limits
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Content Cleanup with XActions
Browser console scripts for mass-cleaning your X/Twitter account history.
Available Scripts
| Script | File | Purpose |
| Search Sweep | scripts/searchSweep.js | Delete (or like/repost/reply to) every post an X search returns |
| Bulk Delete Tweets | src/bulkDeleteTweets.js | Delete your own posts from your profile timeline by age, keyword, or engagement |
| Unlike All Posts | src/unlikeAllPosts.js | Remove all likes from your likes page |
| Clear All Reposts | src/clearAllReposts.js | Remove all retweets/reposts |
| Clear All Bookmarks | src/clearAllBookmarks.js | Remove all saved bookmarks |
| Remove Followers | src/removeFollowers.js | Soft-block to remove specific followers |
Search Sweep: delete everything matching a search
File: scripts/searchSweep.js (full guide: docs/search-sweep.md)
The one to reach for when the user wants "delete every reply I sent @someone", "remove all my posts mentioning X", or "delete everything I posted before 2024". X has no bulk tool for that, but its search finds the posts:
https://x.com/search?q=from%3AYOUR_HANDLE%20%40someone&src=typed_query&f=liveHow to use
- Open that search on x.com (use the Latest tab,
f=live; Top ranking hides most results) - Open DevTools (F12) then Console
- Paste
scripts/searchSweep.js. A panel appears bottom-right, pre-filled with the query already in the address bar - Pick the action: Delete, Like, Repost, or Reply. Leave Dry run ON and click Start
- Read the log, untick Dry run, start again
What to tell the user
- Delete only ever touches their own posts. Anything by another account is refused.
- It needs more than one run. X search returns a slice at a time and its index lags deletions by minutes. The script re-runs the query for several passes and remembers every id it acted on, so running it again a day later only picks up stragglers.
- Filters protect posts worth keeping: minimum age, likes/reposts ceiling, keyword exclusions, and the pinned post is always skipped.
- Deletion is permanent. Back up first with
scripts/backupAccount.js.
Query building
| Want | Query |
| Every reply you sent someone | from:you @someone |
| Only direct replies to them | from:you to:someone |
| Everything you posted before a date | from:you until:2024-01-01 |
| Your posts on a topic | from:you keyword |
| Only replies, no links | from:you @someone filter:replies -filter:links |
Unlike All Posts
File: src/unlikeAllPosts.js
Mass-unlike all posts from your likes page.
How to use
- Navigate to
x.com/YOUR_USERNAME/likes - Open DevTools (F12) → Console
- Paste the script → Enter
Configuration
const CONFIG = {
maxUnlikes: Infinity, // Set a number to limit
minDelay: 800, // Minimum delay between unlikes (ms)
maxDelay: 2000, // Maximum delay
};Key selector
| Element | Selector |
| Unlike button | [data-testid="unlike"] |
Clear All Reposts
File: src/clearAllReposts.js
Remove all retweets/reposts from your profile.
How to use
- Navigate to
x.com/YOUR_USERNAME - Open DevTools (F12) → Console
- Paste the script → Enter
Key selectors
| Element | Selector |
| Unretweet button | [data-testid="unretweet"] |
| Confirm unretweet | [data-testid="unretweetConfirm"] |
Clear All Bookmarks
File: src/clearAllBookmarks.js
Remove all saved bookmarks. Tries the built-in "Clear All" button first, falls back to individual removal.
How to use
- Navigate to
x.com/i/bookmarks - Open DevTools (F12) → Console
- Paste the script → Enter
Remove Followers
File: src/removeFollowers.js
Remove specific followers without fully blocking them (soft-block technique).
Configuration
const CONFIG = {
usersToRemove: ['username1', 'username2'],
removeAll: false, // Set to true to remove ALL visible followers
maxRemovals: 50,
dryRun: true, // Set to false to actually remove
};How to use
- Navigate to
x.com/YOUR_USERNAME/followers - Edit the usernames to remove (or set
removeAll: true) - Set
dryRun: false - Open DevTools (F12) → Console
- Paste the script → Enter
Notes
- Deleting a post cannot be undone, and X search keeps listing deleted posts for a few minutes
- Unlike/unretweet operations cannot be undone — the original post remains, but your interaction is removed
- Clearing bookmarks is permanent
- Remove followers uses the "Remove this follower" option from the three-dot menu on the followers page
- All scripts include configurable delays to respect rate limits
- Progress is logged every 10 items
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

