The HTTP REST tree delete API provides the ability to delete one tree or multiple trees. Individual trees can be deleted by name or blank node identifier. All trees can be deleted by not specifying a name or node identifier. As an option all trees in a specifc graph can be deleted.
Deletes use the DELETE HTTP method. Options are limited to being able to specify a graph. Any other finer grain deletes should use the SPARQL HTTP API.
A DELETE with a URL that includes a tree identifier is used to delete a tree. The identifier can be either the name of a tree or the node identifier for the tree top node. There are no options for the delete operation.
Examples of a DELETE URL for a specific tree are:
A DELETE with a URL that does not includes a tree identifier is used to delete all trees in the database. To narrow the deletions to just the trees in a specific graph an optional graph parameter can be given in the URL query section.
Examples of a DELETE URL for a multiple tree deletions are: