---
title: "Deletes a named graph or removes all triples from the default graph"
method: DELETE
path: "/{storeName}/graphs"
tags: ["graph store protocol"]
---

# Deletes a named graph or removes all triples from the default graph

`DELETE /{storeName}/graphs`

This endpoint implements the [SPARQL 1.1 Graph Store HTTP Protocol](http://www.w3.org/TR/sparql11-http-rdf-update/).

**NOTE** One of either the `default` or the `graph` parameters must be provided.

## Path parameters

- `storeName` string, required

## Query parameters

- `default` boolean
- `graph` string, url

## Response `204`

Successful response (No Content)

## Other responses

- `400` — Bad Request. The request did not contain either a `default` or a `graph` query parameter; or the value of the `graph` query parameter could not be parsed as an aboslute URI.
- `404` — Not Found. The store does not contain the specified named graph.
- `500` — Internal Server Error. The graph could not be deleted.

## Changes

- **2015-05-26** `694b44600c48` — 2 info
  - api operation id `deleteGraph` was added
  - api tag `graph store protocol` added
- **2015-05-26** `37652d797bdc` — 1 info
  - endpoint added
- **2015-05-19** `404ee72d2da6` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/brightstardb/apis/brightstardb-rest-api/changes/:storeName/graphs/delete.md)

---

[API](https://skmtc.dev/brightstardb/apis/brightstardb-rest-api.md) · [All operations](https://skmtc.dev/brightstardb/apis/brightstardb-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/brightstardb/brightstardb-rest-api/revisions/e94ef9356aa7/schema)
