Graphs
Remove an edge definition
Remove one edge definition from the graph. This only removes the edge collection, the vertex collections can still be used in your queries.
Note: Requires administrator permissions.
delete/_fabric/{fabric}/_api/graph/{graph}/edge/{edgeCollection}
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
fabricstring string required
The name of the fabric.
graphstring string required
The name of the graph.
edgeCollectionstring string required
The name of the edge collection the edge belongs to.
Query parameters
dropCollectionsboolean
Set true to remove the collection. Collection is only removed if it is not used in other graphs.
Response
Successfully removed edge definition when waitForSync is enabled.
Example response
{
"code": 201,
"graph": {
"_id": "_graphs/graph1",
"_key": "graph1",
"_rev": "_drxzsai--_",
"edgedefinitions": [
{
"collection": "edgeName",
"from": [
"sourceNode"
],
"to": [
"destinationNode"
]
}
],
"name": "graph1",
"orphanCollections": [
"emptyNode"
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.