Skip to content

Instantly share code, notes, and snippets.

@roberto
Created March 9, 2009 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roberto/76422 to your computer and use it in GitHub Desktop.
Save roberto/76422 to your computer and use it in GitHub Desktop.
#to delete posts on tumblr
require 'tumblr' #gem ruby-tumblr
Tumblr::API.read("bt1.tumblr.com") do |pager|
data = pager.page(0)
data.posts.each do |article|
Net::HTTP.post_form(URI.parse('http://www.tumblr.com/api/delete'), "post-id" => article.postid,:email => 'roberto.tech@gmail.com', :password => 'tumb3')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment