How to most effectively delete (drop) all the data from my database

How to most effectively delete (drop) all the data from my database. I’m using ‘DropAll’ now… and it’s terribly slow.
I’m building some prototype ETL code and need to clear the database multiple times per day.

func dropDatabase(c *dgo.Dgraph) {
ctx := context.Background()
x.Check(c.Alter(ctx, &api.Operation{
DropAll: true,
}))
}

It might be faster to restart the Dgraph processes(Zero and Server) with a new set of directories (p, w and zw).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.