2017  Kodetalk | Feedback | Privacy Policy | Terms | About
userimage

Delete an edge from collection of arangodb using query

I need to delete  an edge from collection of arangodb using query. I am able to delete it using UI but not getting how to delete the same from arangosh console.

userimage

Try below query

db._query("FOR c IN <Edge collection> c._from==data and s._to==data REMOVE {_key:c._key} IN <Edge collection>")

This will work for your problem

Answer is