Last week, I started working on a big step for my website: rebranding an old, personal X (Twitter) account to give Densky.co an established home on social media. I figured it would take me about twenty minutes. I’d just clean out my old posts, clear out the people I was following, and start fresh.
Simple, right? That is when I ran straight into a massive headache.
Google is completely flooded with apps promising a “1-click free profile cleanup.” I clicked on one, linked my account, and gave them permission to access my profile. But the exact second I clicked “Delete,” a massive payment screen popped up. They wanted a heavy monthly subscription just to erase data that literally belongs to me. They trick you with a “free” headline, force you to create an account, and then charge an arm and a leg.
I got completely sick of the bait-and-switch. As the owner and editor here at Densky.co, I want to show you that your web browser is already incredibly powerful. You don’t need a middleman app to click buttons for you, and you definitely don’t need to hand over your credit card.
Here is how I bypassed the paywalls entirely and cleaned up my profile using a few lines of clean code run right inside my own browser.
The Free Tricks I Used
These simple scripts just copy human clicks: they open the post menu, click delete, and confirm the pop-up. Because it runs right in front of your eyes on your own screen, no weird app ever sees your password or holds your history hostage.
1. Cleaning Out My Posts & Replies
I ran this script while looking at my Posts and Replies tabs to completely clear away all my old content.
JavaScript
// A simple tool to delete your posts one by one automatically
function deleteNextPost() {
// 1. Find the three-dots menu button on the top post
const threeDotsMenu = document.querySelector('[data-testid="caret"]');
if (!threeDotsMenu) {
console.log("Looking for more posts... Scrolling down the page.");
window.scrollTo(0, document.body.scrollHeight * 0.3);
return;
}
// Click the three dots
threeDotsMenu.click();
// 2. Wait a split second for the menu to open, then look for "Delete"
setTimeout(() => {
const deleteOption = Array.from(document.querySelectorAll('span'))
.find(el => el.textContent === 'Delete');
if (deleteOption) {
deleteOption.click();
// 3. Wait another split second for the pop-up, then click confirm
setTimeout(() => {
const confirmDelete = document.querySelector('[data-testid="confirmationSheetConfirm"]');
if (confirmDelete) {
confirmDelete.click();
console.log("Post successfully deleted.");
}
}, 500);
} else {
// If it's a retweet, the "Delete" button won't be there.
// This clicks the screen to close the menu so it doesn't get stuck.
document.body.click();
}
}, 500);
}
// Keep running this automated clicker every 3 seconds
const postCleaner = setInterval(deleteNextPost, 3000);
// To STOP the script at any time, paste the line below and press Enter:
// clearInterval(postCleaner);
2. Cleaning Out My Following List
To clear my home feed and make sure I was only following accounts that matter to Densky.co, I went to my Following page and ran this to unfollow everyone automatically.
JavaScript
// A simple tool to unfollow accounts one by one automatically
function unfollowNextAccount() {
// 1. Find all buttons on the page that say "Following"
const followingButtons = Array.from(document.querySelectorAll('button, div[role="button"]'))
.filter(el => el.textContent.trim() === 'Following');
if (followingButtons.length === 0) {
console.log("No more accounts seen. Scrolling down to load more...");
window.scrollTo(0, document.body.scrollHeight);
return;
}
// Click the very first "Following" button found
const targetButton = followingButtons[0];
targetButton.click();
// 2. Wait a split second for the confirmation box to pop up, then click "Unfollow"
setTimeout(() => {
const confirmButton = Array.from(document.querySelectorAll('button, div[role="button"]'))
.find(el => el.textContent.trim() === 'Unfollow');
if (confirmButton) {
confirmButton.click();
console.log("Successfully unfollowed an account.");
} else {
// If the pop-up didn't show up, click the screen to reset
document.body.click();
}
}, 500);
}
// Keep running this automated clicker every 3 seconds
const unfollowCleaner = setInterval(unfollowNextAccount, 3000);
// To STOP the script at any time, paste the line below and press Enter:
// clearInterval(unfollowCleaner);
How to Do It Yourself
1.Open Your Profile:Step 1.
Open up X on your desktop computer and go to your profile page (or your Following page if you want to clean up who you follow).
2.Open the Hidden Console:Step 2.
Right-click anywhere on the blank part of the page and choose Inspect. A window will open on the side or bottom of your screen. Click the Console tab at the top of that new window.
3.Paste and Run:Step 3.
Copy the code block you need from above, paste it into the blank line at the very bottom of that console window, and hit Enter on your keyboard.
4.Watch it Work:Step 4.
Sit back and watch your browser clean up your account for you. If X temporarily pauses you because you are deleting things too fast, don’t worry. Just refresh your webpage (F5), wait a minute, and paste the code back in to start again.
💡 My Personal Lesson: Don’t let greedy apps trick you into thinking you need a credit card just to manage your own personal profiles. Most of the repetitive tasks companies try to charge you for can be done entirely for free using tools already sitting on your computer.














