@ -117,11 +117,12 @@
(neo4j/defquery delete
"MATCH (i:instance {uuid:{uuid}}),
(i)-[ic:of]->(s:schema)
(i)-[ic:of]->(s:schema),
(i)-[cb:created_by]->(:user)
OPTIONAL MATCH
(p:property)-[pc:of]->(i),
(p)-[pac:of]->(a:attribute)
DELETE pac, pc, ic, p, i")
DELETE pac, pc, cb, ic, p, i")
(defn delete! [uuid]
(neo4j/exec-query! delete {:uuid uuid}))