remote_api_shell.py appname /remote_api
from google.appengine.ext.deferred.deferred import _DeferredTaskEntity
query = _DeferredTaskEntity.all()
db.delete(query.fetch(500))
Thursday, December 15, 2011
Deleting _DeferredTaskEntity from Datastore
I dusted off an old Google App Engine project and found the datastore filled with entries in _DeferredTaskEntity model. Approx 1GB worth of them. This hits the free quota roof pretty hard. Here is some nifty code to delete the entries using the remote_api_shell python script. Of course you have to figure out what is creating them but this will get you some breathing room.
Subscribe to:
Posts (Atom)