Skip to main content

Bulk-delete your Threads posts and replies. Free, open-source, runs locally.

Project description

threads-cleaner

Bulk-delete your Threads posts and replies via browser automation.
Clicks the web UI like a human — no API keys, no developer account, no rate limits.

Installation

pip install threads-cleaner
# or
uv add threads-cleaner

Then install the Chromium browser:

threads-cleaner install-browser

(The install-browser command runs playwright install chromium in your environment.)

Quick start

# 1. Log in (opens a browser — go to threads.net, sign in, navigate to your profile)
threads-cleaner browser-login

# 2. Delete all posts
threads-cleaner browser-delete

# 3. Show the browser window to watch what happens
threads-cleaner browser-delete --headed --max 5

Usage

Command Description
install-browser Download the Chromium browser required by Playwright
browser-login Opens a headed browser — log into Threads and session is saved automatically
browser-delete Deletes posts by clicking the Threads UI
browser-delete --include-replies Also delete your replies
browser-delete --max N Stop after N deletions (0 = unlimited)
browser-delete --dry-run Open browser, navigate to profile, but don't confirm any deletes
browser-delete --headed Show the browser (useful for debugging)
browser-delete --yes Skip the confirmation prompt (for scripting)

Examples

# Delete up to 10 posts, show the browser
threads-cleaner browser-delete --headed --max 10

# Delete everything including replies, no prompts
threads-cleaner browser-delete --include-replies --yes

# Preview what the tool would do
threads-cleaner browser-delete --dry-run --headed

# Delete 50 replies only
threads-cleaner browser-delete --include-replies --max 50

How it works

  1. browser-login opens a Chromium window — you sign into threads.net and the session cookies are saved locally.
  2. browser-delete loads those cookies into a fresh browser, navigates to your profile, and for each post:
    • Clicks the More (⋮) button
    • Clicks Delete in the popup menu
    • Clicks Delete in the confirmation dialog
  3. With --include-replies, it also navigates to /replies/ and repeats the same loop.

Each delete takes ~3-4 seconds (limited by UI animations).
The tool scrolls down automatically as it runs, so it can delete hundreds of items in one session.

Safety

  • --dry-run opens the browser and navigates to your profile but never clicks anything destructive.
  • --max N stops after N successful deletes.
  • If a "Something went wrong" toast appears, the tool counts it as a failure (not a success) and continues.
  • Session cookies expire — re-run browser-login if you get a login error.

Requirements

  • Python 3.11+
  • Chromium (installed via playwright install chromium)

Why no API?

Meta's Threads Graph API requires an approved Facebook Developer account (the author's was suspended).
The Instagram REST API endpoints that Threads used internally are now returning 404 or killing sessions.
The only reliable approach is real browser automation that clicks the UI like a human.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

threads_cleaner-0.2.6.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

threads_cleaner-0.2.6-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file threads_cleaner-0.2.6.tar.gz.

File metadata

  • Download URL: threads_cleaner-0.2.6.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for threads_cleaner-0.2.6.tar.gz
Algorithm Hash digest
SHA256 dc19d80b691f0e71306df2610da87dd5785ab0a306a352f023b8f88aed703da8
MD5 36b59cdf36caf139a417032f460d8e7a
BLAKE2b-256 67645ca2bdc0254c6bd20fbe67ae1bc3acbacffbbd96104c96b02cd9e6b9f405

See more details on using hashes here.

File details

Details for the file threads_cleaner-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: threads_cleaner-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.13 {"installer":{"name":"uv","version":"0.11.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for threads_cleaner-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 aed27bb91464137d2bcd2003700efa1cdbd3598994045706d2b3798a66811005
MD5 e7b2db1e68c38c423b26d7fe9c5fb5d1
BLAKE2b-256 1926cfe01b8225def336bfa2b175732740c67b573b8b810f8b29eae6f059f7f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page