src/snac/server/neo4j/Neo4JUtil.php
/**
     * Delete Resource Node
     *
     * Deletes the given resource from Neo4J.
     *
     * @param \snac\data\Resource $resource The resource object to delete from Neo4J
     */
Delete Resource Node
Deletes the given resource from Neo4J.

@param \snac\data\Resource $resource The resource object to delete from Neo4J
Delete Resource Node Deletes the given resource from Neo4J . @param \ snac \ data \ Resource $resource The resource object to delete from Neo4J
public function deleteResource(&$resource) {
        if ($this->connector != null) {
            $this->logger->addDebug("Deleting Resource Node from Neo4J database");
            $result = $this->connector->run("MATCH (a:Resource {id: {id}}) detach delete a;",
                [
                    'id' => $resource->getID()
                ]
            );
            $this->logger->addDebug("Updated neo4j to remove resource");
        }
    }
public function deleteResource ( & $ resource ) { if ( $ this -> connector != null ) { $ this -> logger -> addDebug ( " Deleting Resource Node from Neo4J database " ) ; $ result = $ this -> connector -> run ( " MATCH (a:Resource {id: {id}}) detach delete a; " , [ 'id' => $ resource -> getID ( ) ] ) ; $ this -> logger -> addDebug ( " Updated neo4j to remove resource " ) ; } }
Delete Resource Node
 Deletes the given resource from Neo4J.
Delete Resource Node Deletes the given resource from Neo4J .