Quickly and efficiently delete your entire tweet history with the help of your Twitter archive without worrying about the pointless 3200 tweet limit imposed by Twitter.

Overview

header-image

Twitter Nuke

Quickly and efficiently delete your entire tweet history with the help of your Twitter archive without worrying about the puny and pointless 3200 tweet limit imposed by Twitter.

About

The script uses multithreading to speed up the deletion process by simultaneously running multiple instances of the Twitter API. By utilising this modification the speed can be improved upto ~50-60 times the single threaded performance (~1 tweet per sec).

Features

  • Set the number of likes and retweets as threshold above which the tweets will not be deleted.
  • Set the batch size for threads
  • Your deleted tweets and skipped tweets will be outputted in corresponding files.

Usage

  • Download your Twitter data by following these steps.
  • Edit the script with your Twitter API tokens and your preferences.
  • Run it in your terminal using python3 deleter-script.py

(Note: Post September 2020, due to the high-profile Twitter attack of July 2020, the Twitter data might take anywhere from 24 hours to 4 days to be generated. Keep this in mind.)

Caution

This script will delete all of your tweets and the action cannot be reversed. The script DOES NOT ask for your confirmation before executing the delete command. Run this script only if you are absolutely sure about it. The creator is not responsible for any loss in data and all the liabilities are held by the person running this script.

Donate

Donate to the creator here -> Buy Me a Coffee

Other Credits

Photo by Brett Jordan on Unsplash.

Comments
  • 'charmap' codec can't decode js_file

    'charmap' codec can't decode js_file

    Hello! I got here from your Reddit's post

    I'm trying to take advantage of the great work you've done but it seems that there is an error processing the twitter.json file

    I've tried using different encoding options but code will crash later

    image

    The error I get: ----> 'charmap' codec can't decode byte 0x81 in position 7163: character maps to

    I wish I could fix the problem myself but I am new to Python and don't have much experience with json files and encoding

    Regards, Juan

    bug 
    opened by juanblasmdq 4
  • Various corrections

    Various corrections

    Aside from typos in README, corrected wrong js file name in script (at least in my archive it is tweets.js, not tweet.js) and output files for deleted and skipped tweets opened in append, instead of write, mode. Broken and unneeded requirement removed.

    opened by holmesrichards 2
  • Unmaintained and may not work

    Unmaintained and may not work

    This project seems to be unmaintained and out of the box did not work for me, including typos in the instructions as pointed out in other issues. I created a much simpler, albeit less robust, NodeJS script including step-by-step instructions for obtaining all keys/tokens, which you may find useful:

    https://github.com/wayne530/twitter-wipe

    documentation 
    opened by wayne530 2
  • ERROR: ---Read-only application cannot POST.

    ERROR: ---Read-only application cannot POST.

    Getting the following error when I run the script. I think everything else is setup correctly.

    I'm using Terminal on macOS Big Sur.

    Any ideas?

    Last login: Sat Feb 12 13:30:54 on ttys000
    [email protected] ~ % cd /Users/Ryan/Downloads/twitter                       
    [email protected] twitter % sudo python3 /Users/Ryan/Downloads/twitter/delete-script.py 
    Password:
    
    
    >> Processing your tweet.js file and converting it to a JSON.
    
    >> Processing tweet.js file
    
    >> Converting to processable JSON
    
    >> You have selected 18593 tweets to be deleted.
    >> You have selected 6 tweets to be deleted.
    
    >> Your choices for filters were: 
    >> Likes more than 10 and retweets more than 10.
    
    
        
        >> Deletion of tweets takes a long time due to the sluggish Twitter API. The script uses multithreading to delete threads faster. However, it might still take a few minutes to delete your entire history of tweets if it exceeds a couple of thousand tweets.
    Thread started for deletion. Thread #1
    Thread started for deletion. Thread #2
    Thread started for deletion. Thread #3
    Thread started for deletion. Thread #4
    Thread started for deletion. Thread #5
    Thread started for deletion. Thread #6
    Thread started for deletion. Thread #7
    Thread started for deletion. Thread #8
    Thread started for deletion. Thread #9
    Thread started for deletion. Thread #10
    Thread started for deletion. Thread #11
    Thread started for deletion. Thread #12
    Thread started for deletion. Thread #13
    Thread started for deletion. Thread #14
    Thread started for deletion. Thread #15
    Thread started for deletion. Thread #16
    Thread started for deletion. Thread #17
    Thread started for deletion. Thread #18
    Thread started for deletion. Thread #19
    Thread started for deletion. Thread #20
    Thread started for deletion. Thread #21
    Thread started for deletion. Thread #22
    Thread started for deletion. Thread #23
    Thread started for deletion. Thread #24
    Thread started for deletion. Thread #25
    Thread started for deletion. Thread #26
    Thread started for deletion. Thread #27
    Thread started for deletion. Thread #28
    Thread started for deletion. Thread #29
    Thread started for deletion. Thread #30
    Thread started for deletion. Thread #31
    Thread started for deletion. Thread #32
    Thread started for deletion. Thread #33
    Thread started for deletion. Thread #34
    Thread started for deletion. Thread #35
    Thread started for deletion. Thread #36
    Thread started for deletion. Thread #37
    ERROR: ---Read-only application cannot POST.189286287126175744
    ERROR: ---Read-only application cannot POST.219738329720172544
    ERROR: ---Read-only application cannot POST.231700154238001154
    ERROR: ---Read-only application cannot POST.248052328849080320
    ERROR: ---Read-only application cannot POST.1797644428
    ERROR: ---Read-only application cannot POST.212547389041545216
    ERROR: ---Read-only application cannot POST.271955996660883456
    ERROR: ---Read-only application cannot POST.205792151760678912
    Thread started for deletion. Thread #38
    --> Successfully deleted 18593 tweets.
    --> Successfully skipped 6 tweets from deletion.
    --> Number of threads used: 93 of batch size 500 each.
    
    
    --> Process finished in 7.888478755950928 seconds.
    ERROR: ---Read-only application cannot POST.200232491506872321
    ERROR: ---Read-only application cannot POST.256898477236310016
    ERROR: ---Read-only application cannot POST.194730566065725441
    ERROR: ---Read-only application cannot POST.296991465777807360
    ERROR: ---Read-only application cannot POST.264385288074297344
    ERROR: ---Read-only application cannot POST.154149420810764288
    ERROR: ---Read-only application cannot POST.288272285431906305
    ERROR: ---Read-only application cannot POST.347043531858272258
    ERROR: ---Read-only application cannot POST.486858789987958784
    ERROR: ---Read-only application cannot POST.162172524547940353
    ERROR: ---Read-only application cannot POST.841024024486510593
    ERROR: ---Read-only application cannot POST.370493537529241600
    
    opened by ryanhmcl 2
  • [ImgBot] Optimize images

    [ImgBot] Optimize images

    Beep boop. Your images are optimized!

    Your image file size has been reduced by 15% 🎉

    Details

    | File | Before | After | Percent reduction | |:--|:--|:--|:--| | /assets/twitter-nuke_01.png | 2,697.50kb | 2,291.57kb | 15.05% | | /assets/twitter-nuke_02.png | 58.34kb | 50.30kb | 13.79% | | | | | | | Total : | 2,755.84kb | 2,341.86kb | 15.02% |


    📝 docs | :octocat: repo | 🙋🏾 issues | 🏪 marketplace

    ~Imgbot - Part of Optimole family

    opened by imgbot[bot] 0
  • demjson broken and unneeded

    demjson broken and unneeded

    I got an error running pip3 install -r requirements.txt when it tried to install demjson. I removed that line from the requirements.txt file and everything worked; apparently the script does not really need demjson.

    opened by holmesrichards 0
  • List index out of range

    List index out of range

    After fixing a couple of problems I got the script to run and mostly work, but I did notice this error:

    Exception in thread Thread-31 (delete_tweets):
    Traceback (most recent call last):
    T - Deleted: 856534486653308932
      File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    T - Deleted: 826123225163845632
    T - Deleted: 464801561127178240
    T - Deleted: 1100834889958608896
    T - Deleted: 1018653649478832128
    T - Deleted: 769551237721251840
    T - Deleted: 883419519833788417
    T - Deleted: 27517911400718336
    T - Deleted: 4160500189
        self.run()
      File "/usr/lib/python3.10/threading.py", line 953, in run
    T - Deleted: 949445145539334145
    T - Deleted: 964967785540603905
    T - Deleted: 930911513614913536
    T - Deleted: 1141781722209501185
    T - Deleted: 906531239125032960
        self._target(*self._args, **self._kwargs)
    T - Deleted: 1071462771001319425
    T - Deleted: 1241758022571044865
      File "/home/rsholmes/Downloads/twitter-nuke/src/delete-script-rsh.py", line 99, in delete_tweets
    T - Deleted: 142232664936689665
    T - Deleted: 233966575911305216
        api.destroy_status(int(tweets_to_delete[i]))
    IndexError: list index out of range
    
    opened by holmesrichards 0
  • JSONDecodeError

    JSONDecodeError

    Hi im having an error, the following is what i got after running the script :

    >> Processing your tweet.js file and converting it to a JSON.
    
    >> Processing tweet.js file
    
    >> Converting to processable JSON
    Traceback (most recent call last):
      File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 188, in _run_module_as_main
        mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
      File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 111, in _get_module_details
        import(pkg_name)
      File "C:\Users\risha\Desktop\fx\scriptt.py", line 132, in <module>
        parse_json(JSON_FILE, LIKES, RETWEETS)
      File "C:\Users\risha\Desktop\fx\scriptt.py", line 68, in parse_json
        data = json.load(jfd)
      File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64qbz5n2kfra8p0\lib\json\__init.py", line 293, in load
        return loads(fp.read(),
      File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64qbz5n2kfra8p0\lib\json\__init.py", line 346, in loads
        return _default_decoder.decode(s)
      File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 337, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 353, in raw_decode
        obj, end = self.scan_once(s, idx)
    json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 2 column 3 (char 6)
    
    opened by rishrishrish 5
Releases(0.0.2-alpha)
Owner
Mayur Bhoi
avoiding deprecation
Mayur Bhoi
A simple telegram bot to help you to remove forward tag from post from any messages . Maded in python3 using @Pyrogram . Developed by @Kunal-Diwan

Frwd-Tag-Remover Telegram Bot to Remove forward tag from any Post . If you need any more modes in repo or If you find out any bugs, mention in @Develo

Kunal Diwan 2 Oct 14, 2022
Hacktoberfest2021 - Submit Just 4 PRs to earn SWAGS and Tshirts🔥

dont contribute in this repo, contribute only in below mentioned repo Special Note For Everyone ''' always make more then 4 pull request lets you have

Keshav Singh 820 Jan 02, 2023
Sielzz Music adalah proyek bot musik telegram, memungkinkan Anda memutar musik di telegram grup obrolan suara.

Hi, I am: Requirements 📝 FFmpeg NodeJS nodesource.com Python 3.8 or higher PyTgCalls MongoDB Get STRING_SESSION from below: 🎖 History Features 🔮 Th

1 Nov 29, 2021
NMux is the version of the NMscript in termux

NMscript-termux-version Termux-Version NMux is the termux version of NMscript which is NMscript? NMscript is a simple script written in Python that he

cabeson sin z 5 Apr 23, 2022
A telegram string extractor bot

Made with Python3 (C) @FayasNoushad Copyright permission under MIT License License - https://github.com/FayasNoushad/String-Extract-Bot/blob/main/LIC

Fayas Noushad 12 Jul 19, 2022
Simple Telegram Bot to Download and Upload Files From Mega.nz

Mega.nz-Bot Simple Telegram Bot to Download Files From Mega.nz and Upload It to Telegram Features All Mega.nz File Links supported No login required A

I'm Not A Bot #Left_TG 245 Jan 01, 2023
Notion API Database Python Implementation

Python Notion Database Notion API Database Python Implementation created only by database from the official Notion API. Installing / Getting started p

minwook 78 Dec 19, 2022
Create a roles overview page for all Ansible roles/playbooks in Gitlab

ansible-create-roles-overview Overview The script ./create_roles_overview.py queries a Gitlab API for Ansible roles and playbooks. It will iterate ove

2 Oct 11, 2021
Satoshi is a discord bot template in python using discord.py that allow you to track some live crypto prices with your own discord bot.

Satoshi ~ DiscordCryptoBot Satoshi is a simple python discord bot using discord.py that allow you to track your favorites cryptos prices with your own

Théo 2 Sep 15, 2022
A Matrix-Instagram DM puppeting bridge

mautrix-instagram A Matrix-Instagram DM puppeting bridge. Documentation All setup and usage instructions are located on docs.mau.fi. Some quick links:

89 Dec 14, 2022
It's My Bot, For my group in telegram :)

Get Start USage This robot is written in Python language for devdood Group in Telegram ... You can easily edit and use this source Edit and Run You ne

Mohsen farzadmanesh 7 Sep 24, 2022
Self-adjusting, auto-compounding multi-pair DCA crypto trading bot using Python, AWS Lambda & 3Commas API

Self-adjusting, auto-compounding multi-pair DCA crypto trading bot using Python, AWS Lambda & 3Commas API The following code describes how we can leve

Jozef Jaroščiak 21 Dec 07, 2022
A Discord Bot - has a few commands. Built using python - Discord.py - RIP.

Discord_Bot A Discord Bot has been built here. It is capable of running a few commands. The below present screenshot should suffice in terms of explai

Manab Kumar Biswas 1 May 22, 2022
Pincer-ext-commands - A simple, lightweight package for pincer prefixed commands

pincer.ext.commands A reimagining of pincer's command system and bot system. Ins

Vincent 2 Jan 11, 2022
PaddleOCR推理的pytorch实现和模型转换

PaddleOCR2Pytorch 简介 ”真·白嫖“PaddleOCR 注意 PytorchOCR由PaddleOCR-2.0rc1+动态图版本移植。 特性 高质量推理模型,准确的识别效果 超轻量ptocr_mobile移动端系列 通用ptocr_server系列 支持中英文数字组合识别、竖排文本

519 Jan 08, 2023
A bot for Large Fry Larrys

GroupMe Bot Driver This driver is written entirely in Python, and with easy configuration in mind. Using this driver, you'll be able to monitor multip

1 Oct 25, 2021
This is a tool to help people to make a bot for labelling images for machine learning projects.

labeller_images_python_telegramBOT This is a bot to help collect data for any machine learning project. It was developed using the python-telegram-bot

Diego Silveira 2 Nov 13, 2021
Bill is a bot capable to Chat with you, search everything on web to you, and send message to yours contacts for you.

Bill Bot The inteligent Bot Bill is a intelligent bot, it can chat, search and send messages to you. Chat with You Send messages on WhatsApp for you S

João Assalim 3 Sep 12, 2021
Notion4ever - Python tool for export all your content of Notion page using official Notion API

NOTION4EVER Notion4ever is a small python tool that allows you to free your cont

50 Dec 30, 2022
Bootstrapping your personal Web3 info hub from more than 500 RSS Feeds.

RSS Aggregator for Web3 (or 🥩 RAW for short) Bootstrapping your personal Web3 info hub from more than 500 RSS Feeds. What is RSS or Reader Services?

ChainFeeds 1.8k Dec 29, 2022