---
title: "Remove a graph"
method: DELETE
path: "/_fabric/{fabric}/_api/graph/{graph}"
tags: ["Graphs"]
---

# Remove a graph

`DELETE /_fabric/{fabric}/_api/graph/{graph}`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_fabric/:fabric/_api/graph/:graph/delete.ts> (a function with typed inputs; its response is checked against the schema)

Remove an existing graph object by name. Optionally all collections not used by other graphs can be removed as well.

**Note**: Requires *administrator* permissions.

## Path parameters

- `fabric` string, string, required
- `graph` string, string, required

## Query parameters

- `dropCollections` boolean

## Response `201`

Successfully removed the graph when *waitForSync* is enabled.

- unknown

## Other responses

- `202`: Successfully removed the graph when *waitForSync* is disabled.
- `403`: Failed to validate because you do not have access to the server.
- `404`: Failed to find specified graph.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
