How to remove a property in gremlin?

6,859 views
Skip to first unread message

Pierre De Wilde

unread,
Mar 30, 2011, 12:57:52 PM3/30/11
to Gremlin-users
In Gremlin, how can I remove a property from a vertex/edge?
Is it mapped to the corresponding RexsterGraph() DELETE method?

Thanks,

Pierre

Marko Rodriguez

unread,
Mar 30, 2011, 1:04:22 PM3/30/11
to gremli...@googlegroups.com
Hey,

g.v(1).removeProperty('name')

Note: the full Blueprints API is natively available to Gremlin. See: https://github.com/tinkerpop/gremlin/wiki/Gremlin-Methods

Marko.

Bob B

unread,
Jul 16, 2013, 6:12:37 PM7/16/13
to gremli...@googlegroups.com
Also, you can use the ElementHelper as described here.

Bob B

Daniele Brugnara

unread,
Nov 30, 2018, 10:13:19 AM11/30/18
to Gremlin-users
Tested with Gremlin 3.3.3:

`g.V(#id).properties('prop').drop()`
Reply all
Reply to author
Forward
0 new messages