Hi
There is no need to use the mapper api for that small number of
entities
Use the console and remote api. It will only take a few minutes
runtime. And the advantage is you don't have to deploy anything as
long
as you have remote_api handler already registered.
The do a GQL query of GQL.query("select __key__")
then with a cursor, do a series of fetches of keys followed by
deletes.
For instance
def bulk_delete(kind=None):
c=None
q=None
i = 0
if kind:
q = kind.all(keys_only=True)
else:
q = db.GqlQuery("select __key__")
while True:
if c:
q.with_cursor(c)
keys = q.fetch(500)
i = i+len(keys)
if not keys:
return i
db.delete(keys)
c = q.cursor()
See ya
T
T