---
title: "Remove file from graph"
method: DELETE
path: "/v1/graphs/{graph_id}/file/{file_id}"
tags: ["KG API"]
---

# Remove file from graph

`DELETE /v1/graphs/{graph_id}/file/{file_id}`

## Request

- Base URL: `https://api.writer.com`
- URL: `https://api.writer.com/v1/graphs/{graph_id}/file/{file_id}`
- Auth: HTTP bearer

Remove a file from a Knowledge Graph.

## Path parameters

- `graph_id` string, uuid, required
- `file_id` string, required

## Response `200`

- DeleteFileResponse
  - `id` string, required: A unique identifier of the deleted file.
  - `deleted` boolean, required: Indicates whether the file was successfully deleted.

---

[API](https://skmtc.dev/writer/apis/writer-api.md) - [All operations](https://skmtc.dev/writer/apis/writer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/writer/apis/writer-api/revisions/59865afc5779?raw)
