files API change?

38 views
Skip to first unread message

c h

unread,
Aug 21, 2012, 1:01:04 PM8/21/12
to google-a...@googlegroups.com
Hi, 

i have been using appengine.api.files in python for many months now, and i have been using the _delete method to remove a file when i am done with it (yes i know that the underscore indicates private, but i don't know where you have exposed another delete method)

files.blobstore._delete(cache_key)
AttributeError: 'module' object has no attribute '_delete'

last night the above error started showing in my logs.  did something change?  is there a more correct way to delete a file when using the files API?

thanks,

christian


c h

unread,
Aug 21, 2012, 2:13:51 PM8/21/12
to google-a...@googlegroups.com
i found my answer, it looks like i'm supposed to use google.appengine.ext.blobstore.delete(key) rather than google.appengine.api.files.blobstore._delete(file_name).

thanks.
Reply all
Reply to author
Forward
0 new messages