source: de.wigbels.ruby/rmallyourtweets/rmallyourtweets.rb@ c01b5ba

Last change on this file since c01b5ba was c01b5ba, checked in by njw <njw@…>, 16 years ago

building imperia

  • Property mode set to 100644
File size: 686 bytes
Line 
1#! /usr/bin/env ruby
2
3# remove all your tweets;
4# basically, if you want to keep your account
5#
6# adapted from http://blog.johnwyles.com/articles/2009/01/06/destroying-deleting-and-erasing-old-twitter-tweets/
7
8require 'rubygems'
9require 'activesupport'
10require 'twitter'
11
12
13# auth yourself
14httpauth = Twitter::HTTPAuth.new('YOUR_USER', 'YOUR_PASSWORD')
15twitter = Twitter::Base.new(httpauth)
16
17# go for complete deletion
18twitter.user_timeline("since:2004-01-14").each do |s|
19 twitter.status_destroy(s.id)
20 puts "Deleted tweet: [#{s.id}] \"#{s.text}\" (#{s.created_at})"
21end
22
23# finally
24twitter.update("Hey! Ho! Let's Go #rmallyourtweets
25http://foobla.wigbels.de/tag/delete-all-tweets/")
Note: See TracBrowser for help on using the repository browser.