Deleting Orphan Links

57 views
Skip to first unread message

Scott Orr

unread,
Jun 25, 2015, 10:21:06 AM6/25/15
to orient-...@googlegroups.com
I'm using OrientDB 14.0.6.

I had a bunch of edges, and deleted them; I think I used "DELETE" instead of "DELETE EDGE", as a result of which I'm left with a bunch of orphan links pointing to the now-deleted edges (the orphans still retain the name of the edge class).  How do I get rid of these links?

SavioL

unread,
Jun 25, 2015, 10:38:52 AM6/25/15
to orient-...@googlegroups.com
hi,
can you try to go to tab "Graph" (in orientdb studio) to perform the following two queries:
1) select from V -> do run
2) select from E -> do run
What do you see as image?

regards,
Savio L.

Scott Orr

unread,
Jun 25, 2015, 12:12:49 PM6/25/15
to orient-...@googlegroups.com
When I do that, it doesn't show the orphan edges--but then it also doesn't show unlinked vertexes (which I have a bunch of now, because my efforts to get rid of the old, orphan links deleted some new edges as well, giving me even more orphan links). 

Scott Orr

unread,
Jun 25, 2015, 12:59:22 PM6/25/15
to orient-...@googlegroups.com
I found my answer: 

UPDATE <class> REMOVE in_<edge class>
Reply all
Reply to author
Forward
0 new messages