1
votes

I am storing objects in Google Cloud Storage through the Blobstore API. When it comes time to delete an object, I use:

key = blobstore.create_gs_key(gs_object_name)
blobstore.delete(key)

This deletes the object from Google Cloud Storage, but when I look at Blob Viewer in the App Engine Dashboard site it appears that entries still exist in the Blobstore for each of the objects. When I click on any of the orphans the preview section of the page shows: "Error: Server Error"

Should I delete them using another method?

1

1 Answers

1
votes

It seems when you are using they key from create_gs_key for deleting, the blob in the cloud storage and its corresponding fileinfo object are getting deleted , but not the blobinfo stored in the datastore. What you view in blob viewer in app engine is this blobinfo entity which has details like size, filetype, etc. When you click on any of these entries, it should show the corresponding blob and since its already deleted, you must be seeing the error message.

This earlier post explains how to delete orphan blobinfo.