public function picasaDelete($photoId) { $token = $this->get_login_token(); $client = new Zend_Gdata_HttpClient(); $client->setAuthSubToken($token); $client->setClientLoginToken($token); $gphoto = new Zend_Gdata_Photos($client); $photoQuery = $gphoto->newPhotoQuery(); $photoQuery->setUser($this->config['user']); $photoQuery->setAlbumId($this->config['album_id']); $photoQuery->setPhotoId($photoId); $photoQuery->setType('entry'); $entry = $gphoto->getPhotoEntry($photoQuery); $gphoto->deletePhotoEntry($entry, true); }