Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bash oneliner to delete tweets
# Context:
twurl "/1.1/statuses/user_timeline.json?screen_name=YOUR_TWITTER_HANDLE&count=200&max_id=$(twurl '/1.1/statuses/user_timeline.json?screen_name=YOUR_TWITTER_HANDLE&count=200&include_rts=1' | jq -r '.[9]|.id_str')&include_rts=1" | jq -r '.[]|.id_str' | parallel -j 10 -a - twurl -X POST /1.1/statuses/destroy/{1}.json > /dev/null
Copy link

nerdcha commented Mar 26, 2020

thanks, just used this delete all my tweets, I did remove max_id.

Sweet 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment