How to purge all vertices and edges from a tigergraph database?

132 views
Skip to first unread message

Martyn Bowis

unread,
Mar 24, 2020, 1:31:34 AM3/24/20
to gsql-users

What would be the correct way to purge all vertices and edges from a tigergraph database please?
Any standard endpoint? How to configure?
Anyone have a custom query?
Thanks,
Martyn

Rik

unread,
Mar 24, 2020, 12:11:11 PM3/24/20
to gsql-users
There are a couple of options. If you are running the Developer version, then simply change the schema and publish it, it automatically purges the database.

A more normal way to do it is to go into Graph Studio -> Load Data and look for the waste bin icon at the top of the screen.

I don't think there is a REST endpoint for that function. I'll have a look and get back here if I find it.

Regards

Richard Henderson

Rik

unread,
Mar 24, 2020, 12:15:04 PM3/24/20
to gsql-users
OK, there is this: https://docs.tigergraph.com/dev/restpp-api/built-in-endpoints#delete-graph-graph_name-delete_by_type-vertices

You'll need to iterate through each of your vertex types, but otherwise it will do what you want.

Regards

RH
Reply all
Reply to author
Forward
0 new messages