Re: Unable to delete/modify vertices of static labels

Robert Dale <rob...@...>

If you need to modify a vertex or possibly delete it before the TTL, then you'll probably want to create a regular vertex.  You could create a 'ttl' property and a mixed index on it. In this way, you could create a reaper process that does g.V().has('mylabel', 'ttl', lt(currentTime-ttl)).drop().

I've created an issue to clarify the documentation and think about creating a way to delete static vertexes -

Robert Dale

On Mon, Sep 25, 2017 at 2:11 AM, <abhayti...@...> wrote:

I have made some vertices using Janusgraph-api in java and used Cassandra as backend db. I wanted to use TTL, so I made static vertex labels using JanusgraphManagement. Vertex Labels were made using this code :-

JanusGraphSchemaType vertexLabel = mgmt.makeVertexLabel(label).setStatic().make();

But now I am unable to delete those vertices, as it is throwing this error everytime :-

org.janusgraph.core.SchemaViolationException: Cannot modify unmodifiable vertex: v[8196228]
at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.verifyWriteAccess( ~[janusgraph-core-0.1.1.jar:na]
at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.removeRelation( ~[janusgraph-core-0.1.1.jar:na]

I understand that, since vertex labels are static, we cannot delete it. So, is there any way, wherein we may be able to delete/modify vertices as well as set TTL to them using Janusgraph and Cassandra.

You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit

Join to automatically receive all group messages.