{"_id":"54f0a20c9502520d00d78dbb","version":{"_id":"54ee20645f63b321008be94a","project":"54ee20635f63b321008be947","__v":5,"createdAt":"2015-02-25T19:20:04.054Z","releaseDate":"2015-02-25T19:20:04.054Z","categories":["54ee20645f63b321008be94b","54f097ed7d40be370012d4f1","54f097f39502520d00d78da3","54f097fcf68da9350094ec6e","54f22e183fcd560d00003ed8"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"editedParams2":true,"__v":1,"project":"54ee20635f63b321008be947","user":"54ee203467e09c230091e70c","category":{"_id":"54f097fcf68da9350094ec6e","pages":["54f099589502520d00d78da6","54f0a1826c663623001da071","54f0a1a56c663623001da073","54f0a1b96c663623001da075","54f0a1d77d40be370012d500","54f0a1e96c663623001da077","54f0a20c9502520d00d78dbb","54f209253d28920d0095acba"],"version":"54ee20645f63b321008be94a","__v":8,"project":"54ee20635f63b321008be947","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-02-27T16:14:52.485Z","from_sync":false,"order":1,"slug":"api-docs","title":"API Docs"},"editedParams":true,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-02-27T16:57:48.207Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"delete","results":{"codes":[]},"auth":"required","params":[{"_id":"54f0a7f06c663623001da07d","ref":"","in":"path","required":false,"desc":"ID of the application from which to generate a recommendation.","default":"","type":"string","name":"app"},{"_id":"54f0a7f06c663623001da07c","ref":"","in":"path","required":false,"desc":"ID of the recommender subgraph from which to generate recommendations.","default":"","type":"string","name":"subgraph"},{"_id":"54f0a7f06c663623001da07b","ref":"","in":"path","required":false,"desc":"ID value of the source entity end of the relationship to delete.","default":"","type":"string","name":"sval"},{"_id":"54f0a7f06c663623001da07a","ref":"","in":"path","required":false,"desc":"ID value of the target entity end of the relationship to delete.","default":"","type":"string","name":"tval"}],"url":"/applications/:app/subgraphs/:subgraph/data/relationships/:sval/:tval"},"isReference":false,"order":7,"body":"","excerpt":"Delete a relationship from the database. For instance, if a user “liked” a photo, you would add a relationship between the user (source) and the photo (target), depending on the composition of your subgraph. This endpoint allows you to then delete that relationship if the user “unlikes” the photo (perhaps it was done in error, or perhaps the user changed her mind).","slug":"delete-relationships","type":"endpoint","title":"Delete relationship(s)"}

deleteDelete relationship(s)

Delete a relationship from the database. For instance, if a user “liked” a photo, you would add a relationship between the user (source) and the photo (target), depending on the composition of your subgraph. This endpoint allows you to then delete that relationship if the user “unlikes” the photo (perhaps it was done in error, or perhaps the user changed her mind).

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

app:
string
ID of the application from which to generate a recommendation.
subgraph:
string
ID of the recommender subgraph from which to generate recommendations.
sval:
string
ID value of the source entity end of the relationship to delete.
tval:
string
ID value of the target entity end of the relationship to delete.

User Information

Try It Out

delete
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}