Configuring TTL in edges and vertices of graph


I was able to set TTL for vertices and edges, but even after the time has passed, the vertex did not got removed from the Db. My storage backend is Cassandra. So do we have to configure anything for Cassandra to activate TTL through janusgraph.

I used the following code :-

graph ='conf/
mgmt = graph.openManagement()
tweet = mgmt.makeVertexLabel('tweet').setStatic().make()
mgmt.setTTL(tweet, Duration.ofMinutes(2))

Join to automatically receive all group messages.