sem:graph-delete( $graphname as sem:iri ) as empty-sequence()
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.xquery version "1.0-ml"; import module namespace sem = "http://marklogic.com/semantics" at "/MarkLogic/semantics.xqy"; sem:graph-delete(sem:iri("bookgraph"))
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.