drop
How to drop schema information for a particular graph.
Synopsis
schema.drop()
Description
Drop either all schema information or a particular element of the schema for a particular graph using this command. All data will also be dropped if all schema is dropped.
Examples
If using the Gremlin console, an alias must be created to bind the graph to a graph
traversal before running this command. If using Studio, no prerequistie is required. To drop
all schema and data for a particular graph:
schema.drop()
The result if
the drop command is successful:==>null
DANGER: If this
command is used, the graph will no longer have any schema or data!
To drop a single schema element, such as a property key, specify the schema to
drop:
schema.propertyKey('gender').drop()
All schema elements
(properties, edge labels, vertex labels, and indexes) can be removed with this method.