Created
November 2, 2012 09:18
-
-
Save zakgrant/3999693 to your computer and use it in GitHub Desktop.
Delete all albums in Picasa Web Account
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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