Deletes connection objects that satisfy the specified constraints.


  • [optional] ref: Reference to other entity objects within the transaction.

  • [optional] with_class: Specifies the entity class.

  • [optional] constraints


If the ref parameter is used, with_class and constraints will be ignored.

If the ref parameter is used, the search results represented by the ref will not be valid for the remaining commands within the transaction.

For more complex searches for objects to delete, a Find command must be used first within the transaction.

Warning: Delete is an performance expensive command, as ApertureDB was designed for read intensive workloads.


Delete connections of the class “has_item” with “confidence” property less than 0.8:

[ {
    "DeleteConnection": {
        "with_class": "has_item",
        "constraints": {
            "confidence": ["==", 0.8]

Delete the connections of class “HasVisited” that an Entity of the class “Patient” has, where the Entity of class “Patient” is the source of the Connection, and retrieve the “date” and “care_taker” properties of the Connection. Sort the results by date:

[ {
    "FindEntity": {
        "with_class": "Patient",
        "_ref" : 1,
        "constraints" : {
            "patient_id": [ "==", 231 ],
    "FindConnection": {
        "_ref": 2,
        "with_class": "HasVisited",
        "src": 1,
        "results": {
            "count" : true,
            "list": ["date", "care_taker"],
            "sort": "date"
    "DeleteConnection": {
        "ref": 2
} ]