Hi Peter,
To delete a named graph from a Stardog database, it is sufficient to delete all quads which belong to it. You can remove all quads from more than one graph using a single SPARQL Update query, for example:
DELETE { graph ?g { ?s ?p ?o } }
WHERE {
graph ?g {?s ?p ?o.}
VALUES ?g { <urn:g1> <urn:g2> }
}
Here I hardcoded two graph IRIs but you're free to use any graph pattern which binds ?g. In particular, you can use the SPARQL query which you use separately to prepare the list of graphs to delete.
Cheers,
Pavel