how to remove a kind from datastore using python

66 views
Skip to first unread message

ttt www

unread,
May 11, 2012, 8:20:41 AM5/11/12
to Google App Engine
i create a kind using python :

class zb_news(db.Model):
news_date = db.DateProperty(required=True)
title = db.StringProperty(required=True)
news = db.TextProperty(required=True)

after put some data, i need to change property.
but i don't know how to change property.

now i like remove the kind "zb_news"
what to do? any sample?


please help
thank you very much

Kaan Soral

unread,
May 11, 2012, 4:17:07 PM5/11/12
to google-a...@googlegroups.com
Easiest: create zb_news_2
Hard: run zb_news.all().delete() and move on

ttt www

unread,
May 11, 2012, 8:45:48 PM5/11/12
to Google App Engine

On May 12, 4:17 am, Kaan Soral <kaanso...@gmail.com> wrote:
> Easiest: create zb_news_2
> Hard: run zb_news.all().delete() and move on

thanks for your reply
this is what i did. and working now

i cannot access db admin, since i am in China.

i need to remove some kind (table) to clean db.

anybody can help?

:remove kind (table) from datastore

thanks

Ajith Kumar

unread,
May 14, 2012, 1:55:56 AM5/14/12
to Google App Engine
https://developers.google.com/appengine/articles/update_schema

Refer the content "Removing Deleted Properties from the Datastore"
Reply all
Reply to author
Forward
0 new messages