简体   繁体   中英

How to delete a graph schema using Gremlin

This question refers to Gremlin 3.0.2.

I want to delete the schema of a graph in order to clear out all metadata in the backend storage

Using Java to talk to Titan one could write

graph.close();
TitanCleanup.clear(graph);

Is there something similarly simple available in Gremlin? To make it more clearly, it's not about deleting all vertices and edges of the graph. This has already been done at this point.

As of v3.2.x, TinkerPop only provides an API for graph elements ( Structure ) and traversals ( Process ). It doesn't provide an abstraction over graph schema (properties and indexes): this is left to the responsibility of the implementer and the end user must use these third-party APIs.

You can dig the official TinkerPop mailing list for relevant discussions on the topic.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM