Reputation: 6894
I have this simple code
BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
BlobKey blobKeyDelete = new BlobKey(user.getAvatarBlobKey());
blobstoreService.delete(blobKeyDelete);
I'm 100% sure that the value of the key blob is correct and i have no exception. And the blob is not deleted..
I do not know what is wrong, so if you have any idea on how i could troubleshot this that will be great!
Upvotes: 1
Views: 191
Reputation: 4097
Are you using SDK 1.7.0? If so, maybe this is your issue:
http://code.google.com/p/googleappengine/issues/detail?id=7785
Upvotes: 1
Reputation: 6566
Just a long shot but I had a similar problem, and it turned out that the key was created BEFORE the namespace was set, while the object lived in a namespace. The key contains namespace information. Deleting with a key for a non-existing object does not throw any exception in my experience either.
see this : Objectify BATCH delete has no effect
Upvotes: 1