
sem.graphDelete( graphname as sem.iri ) as null
This function deletes a named graph, and its graph
document containing metadata, from the database. This is an update
function that deletes documents with a root element of
sem:triples. All other documents are not affected.
| Parameters | |
|---|---|
| graphname | The name of the graph to delete. |
graph-delete to delete graphs.
declareUpdate();
const sem = require("/MarkLogic/semantics.xqy");
sem.graphDelete(sem.iri("bookgraph"));