[[rest-api-remove-property-from-a-non-existing-relationship]]
=== Remove property from a non-existing relationship ===

Attempting to remove a property from a relationship which doesn't exist
results in an error.


.Final Graph
["dot", "Final-Graph-Remove-property-from-a-non-existing-relationship.svg", "neoviz"]
----
  N49 [
    label = "{Node\[49\]|name = \'you\'\l}"
  ]
  N50 [
    label = "{Node\[50\]|name = \'I\'\l}"
  ]
  N50 -> N49 [
    color = "#2e3436"
    fontcolor = "#2e3436"
    label = "know\n"
  ]
----

_Example request_

* *+DELETE+*  +http://localhost:7474/db/data/relationship/1234/properties/cost+
* *+Accept:+* +application/json+

_Example response_

* *+404:+* +Not Found+
* *+Content-Type:+* +application/json+
[source,javascript]
----
{
  "exception" : "org.neo4j.server.rest.web.RelationshipNotFoundException",
  "stacktrace" : [ "org.neo4j.server.rest.web.DatabaseActions.relationship(DatabaseActions.java:138)", "org.neo4j.server.rest.web.DatabaseActions.removeRelationshipProperty(DatabaseActions.java:723)", "org.neo4j.server.rest.web.RestfulGraphDatabase.deleteRelationshipProperty(RestfulGraphDatabase.java:595)", "java.lang.reflect.Method.invoke(Method.java:597)" ]
}
----


