source: de.wigbels.ruby/rmallyourtweets/rmallyourtweets.rb@ 9ea979a

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

added author info

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