I put together a command line app to read item ids from a file and
send a batch of delete requests.  The file of ids was created by a
similar app that does a batch insert and writes the ids to a file when
an insert is successful.

while (( line = idLog.readLine()) != null){
        GoogleBaseEntry gentry = new GoogleBaseEntry() ;
        gentry.setId ( line );
        BatchUtils.setBatchOperationType(gentry, BatchOperationType.DELETE );
        feed.addEntry(gentry);
}

GoogleBaseFeed result =
service.batch(FeedURLFactory.getDefault().getItemsBatchFeedURL(),feed);

BatchUtils.isSuccess() is true for all of the GoogleBaseEntry objects
in result but the items are not deleted.

What am I  missing?  This seems like the most simple of batch
operations.

-=beeky


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Base Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Base-data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to