How to remove all tripples without Drop database?

DELETE {
    ?s ?p ?o .
} WHERE {
    ?s ?p ?o .
}

there're still tripples remains in database after run this query.

This query only removes triples in the default graph. You may have some triples in named graphs in which case you'd need graph ?g { .. } around ?s ?p? o.

Best,
Pavel

1 Like

Or you can use the super scary, there should probably be a way to disable it in production, sparql command clear all. Or if you want to want to scream on the inside as you accidentally delete the wrong db clear silient all.

CLEAR ALL

wowzer~

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.