How Can I Delete All My Tweets for Free? (No Paid Tool Needed)

Cover graphic: How Can I Delete All My Tweets for Free? (No Paid Tool Needed)

Core takeaway

  • What happens: you open your own profile on a desktop browser, paste a script into the developer console and press Enter. It removes your posts and reposts one at a time and prints a running count.
  • How long it takes: about 3.4 seconds per removal, roughly 1,000 an hour at best. A timed test removed 10 posts in 34 seconds, so a large account is an all-day job.
  • If it stops: reload the page and run it again. The script pauses on its own for a minute when X says you are going too fast.
  • Do this first: request your X archive. Deleting is permanent, and the archive is your only copy.

Disclosure: con1ainer.com participates in affiliate programs. This article contains no affiliate links. See the Affiliate & Commercial Disclosure.

You do not need a paid tweet deleter.

A short script pasted into your browser’s console, run on your own profile, can delete every post on an X account and undo every repost. It costs nothing, it runs in your own browser, and nothing is sent anywhere else. I wrote this up after clearing the posts from my own account this way.

This guide gives you the script, explains what every part of it does, and covers what to do when it stops, which is the part most guides skip. Every term is explained as it appears.

Prefer to watch first? Here is the 33-second version with 1ai.

Step 1: Download Your Archive

Deleting is permanent. X lets you download a copy of everything you have posted, and that copy is your only way back, so request it first.

  1. On x.com, click More, then Settings and privacy, then Your account.
  2. Choose Download an archive of your data and confirm your password.
  3. Click Request archive.

X emails you when the file is ready, and it can take a day or more. Start the request now and come back to the script later.

Download the .zip as soon as the email arrives.

What You Need

  • A desktop browser: Chrome, Edge or Firefox. The phone apps have no console, so this will not work there.
  • To be logged in to the account you want to clear. The script only deletes posts from the profile you have open.
  • Patience, and a tab you can leave open and in front.

Step 2: Open Your Profile

Go to x.com/yourhandle and stay on the Posts tab.

Under your name and bio, X shows a row of headings, and each one opens a different list. The row is not the same for everyone: a paid account has headings a free account does not, such as Articles. The script works on whichever list is open. Run it on Posts first, then on Replies to remove your replies, and then on Reposts to undo your reposts. If your row has no Reposts heading, your reposts also sit in the Posts list, and the script undoes them there.

Step 3: Open the Console

The console is a panel in your browser where you can run short pieces of code on the page you are looking at.

In Chrome and Edge, press Ctrl+Shift+J on Windows or Linux, or Cmd+Option+J on a Mac. In Firefox, press Ctrl+Shift+K, or Cmd+Option+K on a Mac.

Step 4: Paste and Run the Script

This version has two safeguards built in. It refuses to start unless you are on a profile page, and it only looks for Show more and Retry buttons inside the main timeline, so it cannot wander off into the sidebar.

Paste the script below and press Enter. If your browser asks you to type allow pasting first, do it. That is a safety feature, and it is the reason the next section exists.

(async () => {
  const wait = ms => new Promise(r => setTimeout(r, ms));
  const me = location.pathname.split('/')[1].toLowerCase();
  if (!me || ['home','explore','notifications','messages','i','search','settings','compose'].includes(me)) {
    console.log('Open your own profile page first (x.com/yourhandle), then run this again.'); return;
  }
  const skip = new WeakSet();
  let done = 0, idle = 0;
  while (idle < 25) {
    if ([...document.querySelectorAll('[data-testid="toast"]')].some(t => /wrong|limit|try again/i.test(t.innerText))) {
      console.log('X is slowing us down, pausing 60s...'); await wait(60000);
    }
    const rt = document.querySelector('[data-testid="unretweet"]');
    if (rt) {
      rt.click(); await wait(700);
      document.querySelector('[data-testid="unretweetConfirm"]')?.click();
      done++; idle = 0; console.log('Removed', done); await wait(2000); continue;
    }
    let hit = false;
    for (const art of document.querySelectorAll('article')) {
      if (skip.has(art)) continue;
      const own = [...art.querySelectorAll('a[href^="/"]')]
        .some(a => a.getAttribute('href').toLowerCase() === '/' + me);
      const caret = art.querySelector('[data-testid="caret"]');
      if (!own || !caret) { skip.add(art); continue; }
      caret.click(); await wait(700);
      const del = [...document.querySelectorAll('[role="menuitem"]')]
        .find(m => m.innerText.trim() === 'Delete');
      if (!del) { document.dispatchEvent(new KeyboardEvent('keydown', {key: 'Escape', bubbles: true})); skip.add(art); await wait(300); continue; }
      del.click(); await wait(700);
      document.querySelector('[data-testid="confirmationSheetConfirm"]')?.click();
      done++; hit = true; idle = 0; console.log('Removed', done); await wait(2000); break;
    }
    if (!hit) {
      idle++;
      const col = document.querySelector('[data-testid="primaryColumn"]') || document;
      const more = [...col.querySelectorAll('[role="button"], button')]
        .find(b => /^(show more|retry)$/i.test(b.innerText?.trim()));
      if (more) { console.log('Clicking', more.innerText.trim()); more.click(); await wait(3000); continue; }
      window.scrollTo(0, document.body.scrollHeight); await wait(3000);
      if (idle % 4 === 0) { window.scrollTo(0, 0); await wait(2000); }
    }
  }
  console.log('Finished. Removed', done, '- reload and run again if anything is left.');
})();

Step 5: Let It Work

The console prints Removed 1, Removed 2 and so on, one line per post.

Leave it alone. Do not scroll or click while it works, and do not switch to another tab, because browsers slow down background tabs.

To stop it at any point, reload the page or close the tab. Posts it has already removed stay removed.

When the last post is gone, the script keeps checking for about a minute and a half before it prints Finished. That wait is normal, so do not stop it early. In a timed test, 10 posts took 34 seconds to remove and the Finished line appeared at about 2 minutes.

What the Script Does, in Plain Words

Never paste code into your console that you have not read. This one is short enough to read, and here is what each part does:

  • It works out your handle from the address bar, and stops with a message if you are not on a profile page.
  • It watches for warnings. If X shows a message that mentions going wrong, a limit or trying again, the script waits 60 seconds before it continues.
  • It undoes reposts first. If a repost is on screen, it clicks the repost button and confirms the undo.
  • It deletes your own posts. It looks through the posts on the page for ones that link to your profile, opens the three-dot menu, picks Delete and confirms. If a menu has no Delete option, it skips that post.
  • It keeps the timeline moving. When nothing is left on screen, it clicks a Retry or Show more button in the main timeline if there is one, or scrolls down to load older posts, and every few passes it scrolls back to the top.
  • It stops by itself. After 25 passes in a row with nothing to remove, it prints how many it removed and ends.

It makes no network requests of its own. It only clicks the page’s own buttons, the same ones you would click by hand.

If It Stops

This is the part most guides skip, and it is where a free script needs a little attention. Match what you see to the cause:

  • It says Finished, but posts are still there. X loads older posts in chunks, and the script gives up after 25 empty passes. Reload the page and run it again.
  • The console says X is slowing it down. The script pauses for 60 seconds on its own. If the message keeps coming back, close the tab, wait an hour or more, and run it again later.
  • It deleted a few posts and froze. A menu can get stuck open. Reload the page and run it again.
  • Nothing happens at all. Either you are not on a profile page, in which case the console tells you, or X has changed its page. The script finds X’s buttons by the internal names X gives them, and X can rename them at any time. That is the one thing that can break it.

To check the names, right-click the three-dot button on one of your own posts, choose Inspect, and look for data-testid in the highlighted line. The script depends on five of them:

Name in the scriptWhat it points to
caretThe three-dot menu on a post
confirmationSheetConfirmThe confirm button when you delete a post
unretweetThe repost button, when you have reposted something
unretweetConfirmThe confirm button when you undo a repost
toastThe message bar X shows at the bottom of the screen

If X now uses a different name for one of them, replace that name in the script and run it again.

How Far Back Does the Script Reach?

The script deletes what your profile page shows. It cannot delete a post the page never loads.

Tools built on X’s developer interface are known to stop at about the 3,200 most recent posts, and I cannot tell you that your profile page loads further back than that. If your account has far more posts than that, the oldest ones may sit out of reach of a timeline-based method like this one.

Here is how to check. When the script finishes, scroll to the bottom of your profile and look at the date of the oldest post you can reach. If it is much newer than the start of your account, older posts are hiding.

For those, the route is the archive you downloaded in Step 1, which lists every post you have made. Paid tools use it, and so does a free open-source userscript called TweetXer, which deletes from the tweets.js file in your archive. The same rule applies to it as to this script: read it before you run it, and use it on your own account only.

I cannot say this script reaches every post on a very large account. For most accounts it is the simplest free route.

What It Does Not Touch

  • Likes and bookmarks. The script removes posts and reposts only.
  • Direct messages. They are untouched.
  • Replies and reposts, unless you run it on Replies and Reposts as well.
  • Copies elsewhere. Screenshots, web archives and search engine caches can keep a post for a while after it is gone from X.

Is It Allowed?

Use it on your own account only. X has rules against automation, and this script works inside your own browser at a slow pace instead of using X’s developer interface, but nobody can tell you X is happy with scripts.

The 60-second pause is there to keep it gentle, and if X shows a limit message you should stop for a while. You run it at your own risk.

What the Paid Tools Don’t Tell You Up Front

Paid deleters exist because they do things this script does not. They can filter by date or keyword so you keep some posts, run in the background, and remove old likes. If you need any of that, pay for it.

But most of their pages leave out the limits that matter to someone who just wants a clean account. Here is how the two approaches compare, using the vendors’ own pages and published reviews.

This free scriptTypical paid tool
Access to your accountNone. It runs in a tab where you are already logged in.You authorise the service to read and delete posts on your account.
Your archiveStays on your computerYou upload the file to their tool when you go past the 3,200 limit.
The free tierNo built-in capCircleboom’s own page says its free tool deletes up to your 50 most recent posts. Reviews put Tweet Deleter’s free plan at five posts.
How far back it reachesWhatever your profile page loads (see the section above)Tools built on X’s developer interface reach about your 3,200 most recent posts. Going further needs a paid plan and your archive uploaded to them.
Cost$0A subscription. One iPhone app’s App Store listing shows $6.99 a month or $14.99 a year, and web plans vary.
Filters, likes and schedulingNoYes
When it stopsReload and run it again, with the causes listed aboveTheir guides rarely cover it.

Any app you sign in to with your X account gets permission to act on it, so only authorise services you trust, and review which apps have access in your X settings.

This script deletes everything it can see. If you only want to clear out posts older than a year, or keep your best ones, a paid tool or a manual cleanup fits better. If you want a clean slate and do not want to pay for it, the free script does the job.

Sources: Circleboom’s tweet deletion page, the Tweet Deleter App Store listing, and reviews from Business Insider and Consumer Reports, checked in October 2026. Prices and limits change, so check the vendor before you pay.

Frequently Asked Questions

How can I delete all my tweets for free?

Request your X archive, open your profile on a desktop browser, paste the script above into the console and let it run. It removes your posts and reposts one at a time and needs no account with any outside service.

Can I delete all my tweets at once?

X has no built-in button for it, so every method, paid or free, removes posts one at a time. The script just does the clicking for you.

How long does it take to delete all my tweets?

About 3.4 seconds per removal, which is roughly 1,000 an hour at best. In a timed test it removed 10 posts in 34 seconds. A few hundred posts take minutes. Ten thousand take most of a day, and X’s own limits can slow it further.

Does it delete retweets too?

Yes. Run it on your Reposts list, or on Posts if your profile shows no Reposts heading, and it undoes your reposts one at a time, the same way it deletes your own posts. Reload the page afterwards to confirm the list is empty.

Do I need X Premium?

No. The script uses the same buttons any account has.

Can I get deleted posts back?

Not from X. That is why the first step is to download your archive, which keeps a copy of everything you posted.

Does this work on my phone?

No. It needs a desktop browser with a developer console.

Does it delete my likes?

No. It removes posts and reposts only.

Is there a 3,200 tweet limit?

Tools built on X’s developer interface reach about your 3,200 most recent posts. This script works from your profile page instead, so its reach is whatever the page loads. If your oldest posts do not load, use the archive-based route described above.

Is it safe to give a deleter app access to my X account?

Any app you sign in with gets permission to act on your account, so only authorise services you trust and review the connected apps in your X settings. This script needs no sign-in, because it runs in the tab where you are already logged in, and it makes no network requests of its own.

Clear the Account, Keep a Copy

A free script is enough to clear an X account. Download your archive, open your profile on a desktop browser, paste the script, and keep the tab in front while it works.

When it stops, reload and run it again. If it does nothing at all, check the five names in the table, because X changing them is the usual reason.

Download the archive first, then let the script do the clicking.

Leave a Comment