Skip to content

Instantly share code, notes, and snippets.

@zakgrant
Created November 2, 2012 09:18
Show Gist options
  • Save zakgrant/3999693 to your computer and use it in GitHub Desktop.
Save zakgrant/3999693 to your computer and use it in GitHub Desktop.
Delete all albums in Picasa Web Account
#!/usr/bin/env ruby
require "picasa"
# delete all albums.
begin
client = Picasa::Client.new user_id: $USER_ID, password: $PASSWORD
albums = client.album.list.entries
albums.each do |album|
client.album.delete album.id
end
rescue Picasa::ForbiddenError
puts "You have the wrong user_id or password."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment