how can i delete a namespace?
i fetch the namespace like
q = db.GqlQuery("SELECT * FROM __namespace__").fetch(1000)
... i figure out the namespace i want and set it to the variable ns
ns.delete() does not work
Traceback (most recent call last):
File "<console>", line 1, in <module>
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/db/__init__.py",
line 1103, in delete
datastore.Delete(self.key(), **kwargs)
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/datastore.py",
line 691, in Delete
return DeleteAsync(keys, **kwargs).get_result()
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/apiproxy_stub_map.py",
line 592, in get_result
return self.__get_result_hook(self)
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/datastore/datastore_rpc.py",
line 1621, in __delete_hook
self.check_rpc_success(rpc)
File
"/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/datastore/datastore_rpc.py",
line 1184, in check_rpc_success
raise _ToDatastoreError(err)
BadRequestError: illegal key.path.element.type: __namespace__
any way to get this namespace out of the way?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.