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 |
|
---|
8 | require 'rubygems'
|
---|
9 | require 'activesupport'
|
---|
10 | require 'twitter'
|
---|
11 |
|
---|
12 |
|
---|
13 | # auth yourself
|
---|
14 | httpauth = Twitter::HTTPAuth.new('YOUR_USER', 'YOUR_PASSWORD')
|
---|
15 | twitter = Twitter::Base.new(httpauth)
|
---|
16 |
|
---|
17 | # go for complete deletion
|
---|
18 | twitter.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})"
|
---|
21 | end
|
---|
22 |
|
---|
23 | # finally
|
---|
24 | twitter.update("Hey! Ho! Let's Go #rmallyourtweets
|
---|
25 | http://foobla.wigbels.de/tag/delete-all-tweets/")
|
---|
Note:
See
TracBrowser
for help on using the repository browser.