Answers:
您可以使用Google命令行工具。
google picasa list
google picasa delete --title "Your album name"
您必须创建一个批处理文件才能按名称删除多个相册。
或尝试输入专辑名称的一部分作为通配符。尝试一下。它将提示您确认与通配符匹配的每个专辑,如下所示:
yes | google picasa delete --title "2010."
HINT: No need to include "google" in interactive mode
Are you SURE you want to delete album "2010.8.09"? (y/N): y
Are you SURE you want to delete album "2010.08.09"? (y/N): y
Are you SURE you want to delete album "2010.08.14"? (y/N): y
Are you SURE you want to delete album "2010.07.29"? (y/N): y
Are you SURE you want to delete album "2010.06.09"? (y/N): y
8 June 2015: GoogleCL is currently broken due to the OAuth1 turndown, and likely to remain so. Thanks for your support over the years, and apologies for the lack of prior notice.
此Linux Shell脚本将从您的Picasa帐户中删除所有相册。它curl
与Google Picasa Web-API结合使用。只需在脚本中更改有关您帐户的用户名和密码即可。
#!/bin/sh
# Tutorial: https://developers.google.com/gdata/articles/using_cURL
# Requires: curl, grep, sed
ACCOUNT="GOOGLE"
USERNAME="user@gmail.com"
PASSWORD="pass"
SERVICE="lh2"
# authenticate
AUTH_KEY=$(curl --silent "https://www.google.com/accounts/ClientLogin?accountType=$ACCOUNT&Email=$USERNAME&Passwd=$PASSWORD&service=$SERVICE" | grep 'Auth=' | sed -e 's|Auth=||g')
AUTH_HEADER="Authorization: GoogleLogin auth=$AUTH_KEY"
# get album list for deletion
RESPONSE=$(curl --silent --header "$AUTH_HEADER" "http://picasaweb.google.com/data/feed/api/user/default")
ALBUM_LIST_EDIT=$(echo "$RESPONSE" | sed -e 's|<link rel=.edit. type=.application/atom+xml. href=.|\n|g;s|./><link|\n|g' | grep '^http://')
# delete all albums
for ALBUM in $ALBUM_LIST_EDIT
do
echo "$ALBUM" | sed 's|.*api|\.|g'
curl --request DELETE --header "$AUTH_HEADER" "$ALBUM"
done
Important: ClientLogin has been officially deprecated since April 20, 2012 and is now no longer available. Requests to ClientLogin will fail with a HTTP 404 response. We encourage you to migrate to OAuth 2.0 as soon as possible.
似乎没有一种从Web界面删除多个相册的方法。您需要一次做一个。(这确实是有道理的。想象一下,如果一次误删除整个专辑会造成混乱。)
您可以从Picasa应用程序中删除多个PWA在线相册:http : //support.google.com/picasa/answer/187407
工具 → 批量上传 → 在线删除 →只需选择您要删除的相册,然后单击确定。
google picasa list
命令永远不会为我返回。但是删除有效。如果我选择所有专辑“。*”,它也会在第一个专辑(自动备份)上崩溃,但是,这为我节省了删除数千张专辑的时间。