How to delete all datastore in Google App Engine?

后端 未结 29 1795
夕颜
夕颜 2020-11-28 01:17

Does anyone know how to delete all datastore in Google App Engine?

29条回答
  •  萌比男神i
    2020-11-28 01:44

    There are several ways you can use to remove entries from App Engine's Datastore:

    enter image description here

    1. First, think whether you really need to remove entries. This is expensive and it might be cheaper to not remove them.

    2. You can delete all entries by hand using the Datastore Admin.

    3. You can use the Remote API and remove entries interactively.

    4. You can remove the entries programmatically using a couple lines of code.

    5. You can remove them in bulk using Task Queues and Cursors.

    6. Or you can use Mapreduce to get something more robust and fancier.

    Each one of these methods is explained in the following blog post: http://www.shiftedup.com/2015/03/28/how-to-bulk-delete-entries-in-app-engine-datastore

    Hope it helps!

提交回复
热议问题