drop

Drop a traversal object.

Synopsis

drop()
Table 1. Legend
Syntax conventions Description
Lowercase and uppercase Literal keyword. Includes ().
Italics Variable value. Replace with a user-defined value.
[] Optional. Square brackets ( [] ) surround optional command arguments. Do not type the square brackets.
{} Group. Braces ( {} ) identify a group to choose from. Do not type the braces.
| Or. A vertical bar ( | ) separates alternative elements. Type any one of the elements. Do not type the vertical bar.
... Repeatable. An ellipsis ( ... ) indicates that you can repeat the syntax element as often as required.

Description

The drop() step is a map/sideEffect . Appending drop() to any traversal will drop the preceding objects from the graph.

Examples

Drop all outgoing edges from all vertices:
 g.V().outE().drop() 
Drop the property key name from all vertices; the values stored for the property will also be dropped from the graph.
 g.V().properties('name').drop()
Drop all vertices from a graph:
g.V().drop()